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
|
2013-08-19 15:17:34 +02:00
|
|
|
|
2013-08-19 21:12:05 +02:00
|
|
|
branches:
|
2015-02-25 12:30:57 +01:00
|
|
|
only:
|
|
|
|
- master
|
2015-05-11 15:26:01 +02:00
|
|
|
- /^stable\d+(\.\d+)?$/
|
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-07-01 08:51:43 +02:00
|
|
|
- CORE_BRANCH=stable8.1
|
2015-05-04 00:36:13 +02:00
|
|
|
matrix:
|
|
|
|
- DB=sqlite
|
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-05-04 00:36:13 +02:00
|
|
|
- bash ./before_install.sh contacts $CORE_BRANCH $DB
|
|
|
|
- cd ../core
|
|
|
|
- php occ app:enable contacts
|
2013-08-19 15:17:34 +02:00
|
|
|
|
2013-08-20 00:27:36 +02:00
|
|
|
script:
|
2015-05-04 00:36:13 +02:00
|
|
|
- cd apps/contacts
|
|
|
|
- find . -name \*.php -not -path './l10n/*' -exec php -l "{}" \;
|
2015-05-04 00:20:29 +02:00
|
|
|
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests --coverage-clover clover.xml
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=mysql
|
|
|
|
# - php: 5.4
|
|
|
|
# env: DB=pgsql
|
|
|
|
|
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
fast_finish: true
|