Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit d710254

Browse files
committed
Added phpstan in travis build
1 parent 92a898d commit d710254

File tree

4 files changed

+46
-782
lines changed

4 files changed

+46
-782
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
1212
- COVERAGE_DEPS="php-coveralls/php-coveralls"
13+
- STATIC_ANALYSIS_DEPS="phpstan/phpstan"
1314

1415
matrix:
1516
include:
@@ -22,7 +23,7 @@ matrix:
2223
- CS_CHECK=true
2324
- BENCHMARKS=true
2425
- TEST_COVERAGE=true
25-
- PHPSTAN_TEST=true
26+
- STATIC_ANALYSIS=true
2627
- php: 7.1
2728
env:
2829
- DEPS=latest
@@ -44,13 +45,14 @@ install:
4445
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
4546
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
4647
- 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
4749
- stty cols 120 && composer show
4850

4951
script:
5052
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
5153
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
5254
- 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
5456

5557
after_script:
5658
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"mikey179/vfsStream": "^1.6.4",
3030
"ocramius/proxy-manager": "^2.1.1",
3131
"phpbench/phpbench": "^0.13.0",
32-
"phpstan/phpstan": "^0.10.3",
3332
"phpunit/phpunit": "^6.4.4",
3433
"zendframework/zend-coding-standard": "~1.0.0",
3534
"zendframework/zend-container-config-test": "^0.2.1"

0 commit comments

Comments
 (0)