diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-09 13:22:40 +0300 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-09 13:22:40 +0300 |
commit | 7d2266e668751170ee935d6d90259f8fffc91493 (patch) | |
tree | 35e1fdbabcbd5dae759e2cf887090817b74ab325 /.travis.yml | |
parent | 7a12a7887902c0a7bc687f4a12fb9e1ccdf46206 (diff) |
skelleton
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5c7a03b --- /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 popularitycontestserver owncloud/apps + - phpenv config-add owncloud/apps/popularitycontestserver/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 popularitycontestserver + +before_script: + - cd apps/popularitycontestserver + +script: + - phpunit -c phpunit.xml + - phpunit -c phpunit.integration.xml |