Skip to content

Commit 123af8b

Browse files
committed
run phpstan only on one instance
1 parent ed933d6 commit 123af8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ matrix:
88
- php: 5.6
99
sudo: false
1010
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=false
11+
- php: 7.1
12+
sudo: false
13+
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=false PHPSTAN=true
1114
- php: 7.0
1215
sudo: false
1316
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=false
@@ -35,7 +38,7 @@ install:
3538
- echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3639
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
3740
- composer install --ignore-platform-reqs # ext-amqp is not installed
38-
- ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/enqueue
41+
- if [ "PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/enqueue; fi
3942
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker --version; fi
4043
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker-compose --version; fi
4144
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -b; fi

0 commit comments

Comments
 (0)