diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-03-28 00:23:25 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-03-28 00:25:47 +0100 |
commit | 3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f (patch) | |
tree | 50a9275a91c9cb5510ea8c8de21816e545f80e92 /.travis.yml | |
parent | 6141388969aaf5d2ad1c4d3bdd6d688ea1decf9f (diff) | |
download | wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.gz wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.zst wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.zip |
Rewrite travis & add scrutinizer
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml index d9344827..6e938826 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,27 +1,45 @@ | |||
1 | language: php | 1 | language: php |
2 | 2 | ||
3 | # use docker-container infra | 3 | # faster builds on docker-container setup |
4 | sudo: false | 4 | sudo: false |
5 | 5 | ||
6 | # cache vendor dirs | ||
7 | cache: | ||
8 | directories: | ||
9 | - vendor | ||
10 | - $HOME/.composer/cache | ||
11 | |||
6 | php: | 12 | php: |
7 | - 5.4 | 13 | - 5.4 |
8 | - 5.5 | 14 | - 5.5 |
9 | - 5.6 | 15 | - 5.6 |
10 | - hhvm | 16 | - hhvm |
11 | - nightly | 17 | - nightly |
12 | 18 | ||
13 | matrix: | 19 | matrix: |
14 | allow_failures: | 20 | fast_finish: true |
15 | - php: hhvm | 21 | allow_failures: |
16 | - php: nightly | 22 | - php: hhvm |
23 | - php: nightly | ||
17 | 24 | ||
18 | branches: | 25 | branches: |
19 | only: | 26 | only: |
20 | - v2 | 27 | - v2 |
28 | |||
29 | install: | ||
30 | - composer self-update | ||
21 | 31 | ||
32 | # build coverage only on one build, to speed up results feedbacks | ||
22 | before_script: | 33 | before_script: |
23 | - composer self-update | 34 | - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi; |
24 | 35 | ||
25 | script: | 36 | script: |
26 | - ant prepare | 37 | - ant prepare |
27 | - 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 | ||