Skip to content

Commit 494acd8

Browse files
committed
Start running tests in travis with nightly
Whenever Travis provides a stable 8.0 label, that can be switched to. Currently, though, that's not available. 8.0snapshot could not be installed when I tried. PHPUnit is too outdated for it to support 8.0. Yaml treats `:` as a dictionary, so use the multi-line string syntax.
1 parent 917e065 commit 494acd8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ php:
66
- 7.2
77
- 7.3
88
- 7.4
9+
# Should be changed to 8.0 once travis officially provides that label.
10+
- nightly
911

1012
env:
1113
- VALIDATION=false
@@ -28,7 +30,12 @@ cache:
2830

2931
before_script:
3032
- if [[ $STATIC_ANALYSIS = true ]]; then composer require phpstan/phpstan --no-update; fi
31-
- composer install
33+
- |
34+
if php -r 'exit(PHP_MAJOR_VERSION < 8 ? 0 : 1);';
35+
then composer install
36+
else
37+
composer install --ignore-platform-reqs
38+
fi
3239
- set -e # Stop on first error.
3340
- phpenv config-rm xdebug.ini || true
3441
- if find . -name "*.php" -path "./src/*" -path "./experiments/*" -path "./tools/*" -path "./syntax-visualizer/server/src/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi

0 commit comments

Comments
 (0)