2013-08-19 19:05:55 +02:00
|
|
|
language: php
|
2013-08-19 15:02:39 +02:00
|
|
|
php:
|
2013-08-26 20:10:29 +02:00
|
|
|
- 5.4
|
2014-07-30 10:54:18 +02:00
|
|
|
- 5.5
|
2015-02-25 12:30:57 +01:00
|
|
|
- 5.6
|
2015-07-06 17:02:31 +02:00
|
|
|
- 7
|
2015-02-11 19:33:33 +01:00
|
|
|
- hhvm
|
2013-08-19 21:12:05 +02:00
|
|
|
|
2013-08-19 20:08:55 +02:00
|
|
|
env:
|
2015-05-04 00:36:13 +02:00
|
|
|
global:
|
2015-02-11 19:33:33 +01:00
|
|
|
- CORE_BRANCH=master
|
|
|
|
- APP_NAME=contacts
|
2015-05-04 00:36:13 +02:00
|
|
|
matrix:
|
2015-02-11 19:33:33 +01:00
|
|
|
- DB=sqlite
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^stable\d*$/
|
2013-08-19 20:08:55 +02:00
|
|
|
|
2013-08-26 20:10:29 +02:00
|
|
|
before_install:
|
2014-09-03 15:25:54 +02:00
|
|
|
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
2015-02-11 19:33:33 +01:00
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
2015-07-06 17:02:31 +02:00
|
|
|
- cd ../core
|
2015-07-06 17:02:31 +02:00
|
|
|
- php occ app:enable $APP_NAME
|
2013-08-19 15:17:34 +02:00
|
|
|
|
2013-08-20 00:27:36 +02:00
|
|
|
script:
|
2015-02-11 19:33:33 +01:00
|
|
|
# Test lint
|
2015-07-06 17:02:31 +02:00
|
|
|
- cd apps/$APP_NAME
|
2015-02-11 19:33:33 +01:00
|
|
|
- find . -name \*.php -exec php -l "{}" \;
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd tests
|
|
|
|
- phpunit --configuration phpunit.xml --testsuite unit-tests
|
2015-05-04 00:20:29 +02:00
|
|
|
|
|
|
|
# Create coverage report
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
|
2013-08-26 20:10:29 +02:00
|
|
|
|
2015-05-04 00:36:13 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2015-02-11 19:33:33 +01:00
|
|
|
- php: 5.4
|
|
|
|
env: DB=mysql
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=pgsql
|
2015-07-06 17:02:31 +02:00
|
|
|
- php: 5.4
|
|
|
|
env: "DB=mysql CORE_BRANCH=stable8.1"
|
2015-05-04 00:36:13 +02:00
|
|
|
allow_failures:
|
2015-02-11 19:33:33 +01:00
|
|
|
- php: hhvm
|
|
|
|
- php: 7
|
2015-07-06 17:02:31 +02:00
|
|
|
fast_finish: true
|