diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-28 10:46:33 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-28 10:46:33 +0100 |
commit | bdf2add2e80dc52a02113c50636b5f887639b31a (patch) | |
tree | 50a9275a91c9cb5510ea8c8de21816e545f80e92 /.travis.yml | |
parent | f37d1427a1b75f9d7a2e273b2e9fb0e895a769ab (diff) | |
parent | 3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f (diff) | |
download | wallabag-bdf2add2e80dc52a02113c50636b5f887639b31a.tar.gz wallabag-bdf2add2e80dc52a02113c50636b5f887639b31a.tar.zst wallabag-bdf2add2e80dc52a02113c50636b5f887639b31a.zip |
Merge pull request #1163 from wallabag/v2-speed-up-tests
Speed up tests
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index ff23ad45..6e938826 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,18 +1,45 @@ | |||
1 | language: php | 1 | language: php |
2 | 2 | ||
3 | # faster builds on docker-container setup | ||
4 | sudo: false | ||
5 | |||
6 | # cache vendor dirs | ||
7 | cache: | ||
8 | directories: | ||
9 | - vendor | ||
10 | - $HOME/.composer/cache | ||
11 | |||
3 | php: | 12 | php: |
4 | - 5.4 | 13 | - 5.4 |
5 | - 5.5 | 14 | - 5.5 |
6 | - 5.6 | 15 | - 5.6 |
16 | - hhvm | ||
17 | - nightly | ||
18 | |||
19 | matrix: | ||
20 | fast_finish: true | ||
21 | allow_failures: | ||
22 | - php: hhvm | ||
23 | - php: nightly | ||
7 | 24 | ||
8 | branches: | 25 | branches: |
9 | only: | 26 | only: |
10 | - v2 | 27 | - v2 |
11 | 28 | ||
29 | install: | ||
30 | - composer self-update | ||
31 | |||
32 | # build coverage only on one build, to speed up results feedbacks | ||
12 | before_script: | 33 | before_script: |
13 | - composer self-update | 34 | - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi; |
14 | - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
15 | 35 | ||
16 | script: | 36 | script: |
17 | - ant prepare | 37 | - ant prepare |
18 | - phpunit --coverage-text | 38 | - phpunit $PHPUNIT_FLAGS |
39 | |||
40 | after_script: | ||
41 | - | | ||
42 | if [ $TRAVIS_PHP_VERSION = '5.6' ]; then | ||
43 | wget https://scrutinizer-ci.com/ocular.phar | ||
44 | php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
45 | fi | ||