aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-28 00:23:25 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-03-28 00:25:47 +0100
commit3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f (patch)
tree50a9275a91c9cb5510ea8c8de21816e545f80e92 /.travis.yml
parent6141388969aaf5d2ad1c4d3bdd6d688ea1decf9f (diff)
downloadwallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.gz
wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.zst
wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.zip
Rewrite travis & add scrutinizer
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml46
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 @@
1language: php 1language: php
2 2
3# use docker-container infra 3# faster builds on docker-container setup
4sudo: false 4sudo: false
5 5
6# cache vendor dirs
7cache:
8 directories:
9 - vendor
10 - $HOME/.composer/cache
11
6php: 12php:
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
13matrix: 19matrix:
14 allow_failures: 20 fast_finish: true
15 - php: hhvm 21 allow_failures:
16 - php: nightly 22 - php: hhvm
23 - php: nightly
17 24
18branches: 25branches:
19 only: 26 only:
20 - v2 27 - v2
28
29install:
30 - composer self-update
21 31
32# build coverage only on one build, to speed up results feedbacks
22before_script: 33before_script:
23 - composer self-update 34 - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi;
24 35
25script: 36script:
26 - ant prepare 37 - ant prepare
27 - phpunit --coverage-text 38 - phpunit $PHPUNIT_FLAGS
39
40after_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