summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-10-26 11:29:01 +0100
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-10-26 11:29:01 +0100
commit14804ae7b7d7a2d006b42189ad303241cde2550b (patch)
tree41740c2f9a49d9491f34a1db30261e9cb52608e1 /.travis.yml
Initial commit
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..80546f89
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,49 @@
+language: php
+php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - hhvm
+
+env:
+ global:
+ - BRANCH=master
+ matrix:
+ - DB=mysql
+
+matrix:
+ allow_failures:
+ - php: hhvm
+ include:
+ - php: 5.4
+ env: DB=sqlite
+ - php: 5.4
+ env: DB=pgsql
+
+
+install:
+ # install ocdev
+ - sudo apt-get -y install python3-jinja2 python3-setuptools
+ - sudo easy_install3 requests
+ - sudo easy_install3 ocdev
+ # set up postgresql
+ - createuser -U travis -s oc_autotest
+ # set up mysql
+ - mysql -e 'create database oc_autotest;'
+ - mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"
+ - mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"
+ # install owncloud
+ - cd ..
+ - ocdev setup core --dir owncloud --branch $BRANCH --no-history
+ - mv contactsrework owncloud/apps
+ - phpenv config-add owncloud/apps/contactsrework/tests/travis/php.ini
+ - cd owncloud
+ - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --database-pass --admin-user admin --admin-pass admin --database $DB
+ - ./occ app:enable contactsrework
+
+before_script:
+ - cd apps/contactsrework
+
+script:
+ - phpunit -c phpunit.xml
+ - phpunit -c phpunit.integration.xml