1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-28 10:24:11 +01:00
OwncloudContactsOfficial/.travis.yml
2015-07-06 21:16:15 +02:00

52 lines
1.1 KiB
YAML

language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- hhvm
env:
global:
- CORE_BRANCH=master
- APP_NAME=contacts
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d*$/
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../core
- php occ app:enable $APP_NAME
script:
# Test lint
- cd apps/$APP_NAME
- find . -name \*.php -exec php -l "{}" \;
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml --testsuite unit-tests
# 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
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable8.1"
allow_failures:
- php: hhvm
- php: 7
fast_finish: true