Skip to content

Commit 0ef2b91

Browse files
committed
Try to update version detection
1 parent bd40aa0 commit 0ef2b91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ php:
88
env:
99
global:
1010
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
11-
- PHP_MAJOR_VERSION=$(php -r 'echo PHP_MAJOR_VERSION;')
1211
allow_failures:
1312
php: nightly
1413
cache:
@@ -19,8 +18,7 @@ before_script:
1918
- chmod +x ./cc-test-reporter
2019
- ./cc-test-reporter before-build
2120
install:
22-
- echo $PHP_MAJOR_VERSION
23-
- if [ "$PHP_MAJOR_VERSION" == "8" ]; then composer install --ignore-platform-reqs; else composer install; fi
21+
- if [ $(php -r 'echo PHP_MAJOR_VERSION;') == "8" ]; then composer install --ignore-platform-reqs; else composer install; fi
2422
script:
2523
- vendor/bin/phpunit tests --coverage-clover clover.xml --whitelist src
2624
after_script:

0 commit comments

Comments
 (0)