2015-01-30 08:09:53 +00:00
|
|
|
language: php
|
2015-01-31 08:15:51 +00:00
|
|
|
|
2015-03-27 23:23:25 +00:00
|
|
|
# faster builds on docker-container setup
|
2015-03-27 18:47:30 +00:00
|
|
|
sudo: false
|
|
|
|
|
2015-09-28 18:35:56 +00:00
|
|
|
# used for HHVM
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tidy
|
|
|
|
|
2015-03-27 23:23:25 +00:00
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2015-01-30 10:23:18 +00:00
|
|
|
php:
|
2015-03-27 23:23:25 +00:00
|
|
|
- 5.4
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2015-09-26 09:56:15 +00:00
|
|
|
- 7.0
|
2015-03-27 23:23:25 +00:00
|
|
|
- hhvm
|
2015-09-26 09:56:15 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=mysql
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=sqlite
|
2015-03-27 18:58:48 +00:00
|
|
|
|
|
|
|
matrix:
|
2015-03-27 23:23:25 +00:00
|
|
|
fast_finish: true
|
2015-09-26 09:56:15 +00:00
|
|
|
exclude:
|
|
|
|
- php: hhvm
|
|
|
|
env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
|
2015-03-27 23:23:25 +00:00
|
|
|
allow_failures:
|
2015-09-26 09:56:15 +00:00
|
|
|
- php: 7.0
|
2015-03-27 23:23:25 +00:00
|
|
|
- php: hhvm
|
2015-01-31 08:15:51 +00:00
|
|
|
|
2015-01-19 12:37:32 +00:00
|
|
|
branches:
|
2015-03-27 23:23:25 +00:00
|
|
|
only:
|
|
|
|
- v2
|
|
|
|
|
2015-09-26 09:56:15 +00:00
|
|
|
before_script:
|
2015-09-26 17:23:20 +00:00
|
|
|
- composer self-update
|
|
|
|
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
|
2015-09-26 09:56:15 +00:00
|
|
|
# disable xdebug since we don't use code-coverage for now
|
2015-09-26 17:06:32 +00:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
|
2015-09-26 09:56:15 +00:00
|
|
|
# build coverage only on one build, to speed up results feedbacks
|
2015-05-30 11:31:54 +00:00
|
|
|
# - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
|
2015-09-26 09:56:15 +00:00
|
|
|
- if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
|
2015-01-31 08:15:51 +00:00
|
|
|
|
|
|
|
script:
|
2015-09-26 09:56:15 +00:00
|
|
|
- ant prepare-$DB
|
2015-11-01 22:42:52 +00:00
|
|
|
- SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -v
|
2015-05-30 11:31:54 +00:00
|
|
|
|
|
|
|
# after_script:
|
|
|
|
# - |
|
|
|
|
# if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
|
|
|
|
# wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
# php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
|
|
# fi
|