mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 02:11:05 +01:00
0ee043f745
They are god damn too long to execute because it launch external command (mostly related to doctrine). So I've added a PHPUnit @group (`command-doctrine`) so that we can avoid launching them on a regular basis, like that: `phpunit --exclude-group command-doctrine`
46 lines
913 B
YAML
46 lines
913 B
YAML
language: php
|
|
|
|
# faster builds on docker-container setup
|
|
sudo: false
|
|
|
|
# cache vendor dirs
|
|
cache:
|
|
directories:
|
|
- vendor
|
|
- $HOME/.composer/cache
|
|
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- hhvm
|
|
- nightly
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- php: hhvm
|
|
- php: nightly
|
|
|
|
branches:
|
|
only:
|
|
- v2
|
|
|
|
install:
|
|
- composer self-update
|
|
|
|
# build coverage only on one build, to speed up results feedbacks
|
|
before_script:
|
|
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
|
|
|
|
script:
|
|
- ant prepare
|
|
- phpunit --exclude-group command-doctrine $PHPUNIT_FLAGS
|
|
|
|
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
|