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

52 lines
1.1 KiB
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
2015-07-06 17:02:31 +02:00
- 7
- hhvm
2013-08-19 20:08:55 +02:00
env:
2015-05-04 00:36:13 +02:00
global:
- CORE_BRANCH=master
- APP_NAME=contacts
2015-05-04 00:36:13 +02:00
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d*$/
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
- 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:
# Test lint
2015-07-06 17:02:31 +02:00
- cd apps/$APP_NAME
- 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"
2015-05-04 00:36:13 +02:00
matrix:
include:
- 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:
- php: hhvm
- php: 7
2015-07-06 17:02:31 +02:00
fast_finish: true