File tree Expand file tree Collapse file tree 6 files changed +12
-21
lines changed Expand file tree Collapse file tree 6 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 11language : php
22
3+ # php version to use for travis' composer & coverage
34php :
45 - 7.1
56
6- sudo : false
7-
87services :
98 - docker
109
@@ -16,7 +15,6 @@ script:
1615 - make ci
1716
1817after_success :
19- - if [[ "`phpenv version-name`" != "7.1" ]]; then exit 0; fi
2018 - vendor/bin/phpunit --coverage-clover coverage.clover
2119 - wget https://scrutinizer-ci.com/ocular.phar
2220 - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change 1- FROM php:7.1-cli
1+ ARG PHP_VERSION
2+
3+ FROM php:${PHP_VERSION}-cli
24
35RUN \
46 apt-get update && \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,15 +20,12 @@ phpunit:
2020
2121phpcs :
2222 docker-compose run --rm fun-validators-7.1 ./vendor/bin/phpcs
23- docker-compose run --rm fun-validators-7.2 ./vendor/bin/phpcs
2423
2524stan :
2625 docker-compose run --rm fun-validators-7.1 ./vendor/bin/phpstan analyse --level=1 --no-progress src/ tests/
27- docker-compose run --rm fun-validators-7.2 ./vendor/bin/phpstan analyse --level=1 --no-progress src/ tests/
2826
2927covers :
3028 docker-compose run --rm fun-validators-7.1 ./vendor/bin/covers-validator
31- docker-compose run --rm fun-validators-7.2 ./vendor/bin/covers-validator
3229
3330composer :
3431 docker run --rm --interactive --tty --volume $(shell pwd) :/app -w /app\
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ To run just the PHPUnit tests run
5555
5656To run only a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run
5757
58- docker-compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter
58+ docker-compose run --rm fun-validators-7.1 ./vendor/bin/phpunit --filter SomeClassNameOrFilter
5959
6060If you have failing unit tests but want to run them for all PHP versions
6161(normally it would bail on the first error) you can do so using
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ version: '2'
33services :
44 fun-validators-7.1 :
55 build :
6- context : ./
7- dockerfile : Dockerfile-7.1
8- image : fun-validators: 7.1
6+ context : .
7+ args :
8+ PHP_VERSION : 7.1
99 volumes :
1010 - ./:/usr/src/app
1111 working_dir : /usr/src/app
12+ image : wmde/fun-validators:7.1
1213
1314 fun-validators-7.2 :
1415 extends :
1516 service : fun-validators-7.1
1617 build :
17- context : ./
18- dockerfile : Dockerfile- 7.2
19- image : fun-validators:7.2
18+ args :
19+ PHP_VERSION : 7.2
20+ image : wmde/ fun-validators:7.2
You can’t perform that action at this time.
0 commit comments