File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 3232 - PHP_VERSION : ' 7.4'
3333 - PHP_VERSION : ' 8.0'
3434 - PHP_VERSION : ' 8.1'
35- - PHP_VERSION : ' 8.2.0RC2 '
35+ - PHP_VERSION : ' 8.2.0RC3 '
3636
3737 # Steps represent a sequence of tasks that will be executed as part of the job
3838 steps :
Original file line number Diff line number Diff line change 22if [ $# != 1 ]; then
33 echo " Usage: $0 PHP_VERSION" 1>&2
44 echo " e.g. $0 8.0" 1>&2
5- echo " The PHP_VERSION is the version of the php docker image to use to run phpstan" 1>&2
6- echo " This runs the tests that have been set up in GitHub Workflows so far" 1>&2
5+ echo " The PHP_VERSION is the version of the php docker image to use to run phpstan (static analysis)" 1>&2
76 exit 1
87fi
98# -x Exit immediately if any command fails
1211set -xeu
1312PHP_VERSION=$1
1413
14+ # This is the same image name, Dockerfile and build arguments as ci/run_tests_dockerized.sh
1515DOCKER_IMAGE=" tolerant-php-parser-test-runner:$PHP_VERSION "
1616docker build --build-arg=" PHP_VERSION=$PHP_VERSION " --tag=" $DOCKER_IMAGE " -f ci/Dockerfile .
1717docker run --rm $DOCKER_IMAGE ci/run_phpstan.sh
Original file line number Diff line number Diff line change 1111# -u fail for undefined variables
1212set -xeu
1313PHP_VERSION=$1
14- COMPOSER_OPTIONS=" "
15- # lexicographic comparison
16- if [ " $PHP_VERSION " > " 8.1" ]; then
17- COMPOSER_OPTIONS=" --ignore-platform-reqs"
18- fi
1914
2015DOCKER_IMAGE=" tolerant-php-parser-test-runner:$PHP_VERSION "
21- docker build --build-arg=" PHP_VERSION=$PHP_VERSION " --build-arg= " COMPOSER_OPTIONS= $COMPOSER_OPTIONS " -- tag=" $DOCKER_IMAGE " -f ci/Dockerfile .
16+ docker build --build-arg=" PHP_VERSION=$PHP_VERSION " --tag=" $DOCKER_IMAGE " -f ci/Dockerfile .
2217docker run --rm $DOCKER_IMAGE ci/run_tests.sh
You can’t perform that action at this time.
0 commit comments