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

43 lines
984 B
YAML

language: php
php:
- 5.4
- 5.5
- 5.6
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
env:
global:
- CORE_BRANCH=stable8.1
matrix:
- DB=sqlite
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh contacts $CORE_BRANCH $DB
- cd ../core
- php occ app:enable contacts
script:
- cd apps/contacts
- find . -name \*.php -not -path './l10n/*' -exec php -l "{}" \;
- 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"
matrix:
include:
- php: 5.4
env: DB=mysql
# - php: 5.4
# env: DB=pgsql
allow_failures:
- php: hhvm
fast_finish: true