1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00
OwncloudContactsOfficial/.travis.yml

43 lines
984 B
YAML
Raw Normal View History

2013-08-19 19:05:55 +02:00
language: php
2013-08-19 15:02:39 +02:00
php:
- 5.4
2014-07-30 10:54:18 +02:00
- 5.5
- 5.6
2013-08-19 15:17:34 +02:00
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
2013-08-19 20:08:55 +02:00
env:
2015-05-04 00:36:13 +02:00
global:
- CORE_BRANCH=stable8.1
2015-05-04 00:36:13 +02:00
matrix:
- DB=sqlite
2013-08-19 20:08:55 +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"
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