aboutsummaryrefslogtreecommitdiffhomepage
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
parent6141388969aaf5d2ad1c4d3bdd6d688ea1decf9f (diff)
downloadwallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.gz
wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.tar.zst
wallabag-3e6b7ea0e9251d8ae69af5dc2e1eb65887c3da9f.zip
Rewrite travis & add scrutinizer
-rw-r--r--.scrutinizer.yml22
-rw-r--r--.travis.yml46
2 files changed, 54 insertions, 14 deletions
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
new file mode 100644
index 00000000..547120e6
--- /dev/null
+++ b/.scrutinizer.yml
@@ -0,0 +1,22 @@
1filter:
2 paths:
3 - src/*
4 excluded_paths:
5 - 'vendor/*'
6 - 'app/*'
7 - 'web/*'
8 - 'src/Wallabag/*Bundle/Tests/*'
9 - '*Test.php'
10
11tools:
12 php_cs_fixer: true
13 php_analyzer: true
14 php_mess_detector: true
15 php_changetracking: true
16 php_code_sniffer: true
17 php_pdepend: true
18 sensiolabs_security_checker: true
19 external_code_coverage: true
20 php_code_coverage: true
21 php_sim: false
22 php_cpd: false
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