This repository was archived by the owner on Feb 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +46
-782
lines changed Expand file tree Collapse file tree 4 files changed +46
-782
lines changed Original file line number Diff line number Diff line change 10
10
global :
11
11
- COMPOSER_ARGS="--no-interaction"
12
12
- COVERAGE_DEPS="php-coveralls/php-coveralls"
13
+ - STATIC_ANALYSIS_DEPS="phpstan/phpstan"
13
14
14
15
matrix :
15
16
include :
@@ -22,7 +23,7 @@ matrix:
22
23
- CS_CHECK=true
23
24
- BENCHMARKS=true
24
25
- TEST_COVERAGE=true
25
- - PHPSTAN_TEST =true
26
+ - STATIC_ANALYSIS =true
26
27
- php : 7.1
27
28
env :
28
29
- DEPS=latest
@@ -44,13 +45,14 @@ install:
44
45
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
45
46
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
46
47
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
48
+ - if [[ $STATIC_ANALYSIS == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $STATIC_ANALYSIS_DEPS ; fi
47
49
- stty cols 120 && composer show
48
50
49
51
script :
50
52
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
51
53
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
52
54
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
53
- - if [[ $PHPSTAN_TEST == 'true' ]]; then ./vendor/bin/phpstan analyse --no-progress . ; fi
55
+ - if [[ $STATIC_ANALYSIS == 'true' ]]; then ./vendor/bin/phpstan analyse --no-progress . ; fi
54
56
55
57
after_script :
56
58
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
Original file line number Diff line number Diff line change 29
29
"mikey179/vfsStream" : " ^1.6.4" ,
30
30
"ocramius/proxy-manager" : " ^2.1.1" ,
31
31
"phpbench/phpbench" : " ^0.13.0" ,
32
- "phpstan/phpstan" : " ^0.10.3" ,
33
32
"phpunit/phpunit" : " ^6.4.4" ,
34
33
"zendframework/zend-coding-standard" : " ~1.0.0" ,
35
34
"zendframework/zend-container-config-test" : " ^0.2.1"
You can’t perform that action at this time.
0 commit comments