1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-03 07:24:10 +01:00
OwncloudBookmarksOfficial/.travis.yml

50 lines
1008 B
YAML
Raw Normal View History

2014-08-19 10:18:07 +02:00
language: php
php:
- 5.4
- 5.5
2014-12-07 12:40:43 +01:00
- 5.6
2014-12-15 11:58:24 +01:00
- hhvm
2014-08-19 10:18:07 +02:00
env:
global:
- CORE_BRANCH=master
2014-12-15 11:58:24 +01:00
- APP_NAME=bookmarks
2014-08-19 10:18:07 +02:00
matrix:
- DB=sqlite
branches:
only:
- master
- stable7
before_install:
# - composer install
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
2014-12-15 11:58:24 +01:00
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
2014-08-19 10:18:07 +02:00
- cd ../core
2014-12-15 11:58:24 +01:00
- php occ app:enable $APP_NAME
2014-08-19 10:18:07 +02:00
script:
# Test lint
2014-12-15 11:58:24 +01:00
- cd apps/$APP_NAME
- find . -name \*.php -exec php -l "{}" \;
2014-08-19 10:18:07 +02:00
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# Create coverage report
2014-12-15 11:58:24 +01:00
- 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"
2014-08-19 10:18:07 +02:00
matrix:
include:
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=pgsql
allow_failures:
- php: hhvm
fast_finish: true