Skip to content

Commit fe51b80

Browse files
Optimize travis file a bit
1 parent 2d699e3 commit fe51b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ before_install:
120120
# php.ini configuration
121121
(
122122
for PHP in $TRAVIS_PHP_VERSION $php_extra; do
123-
(cd / && wget https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/18.04/x86_64/php-$PHP.tar.bz2 -O - | tar -xj) &
123+
([[ $PHP != 7.4 ]] && phpenv global $PHP 2>/dev/null) || (cd / && wget https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/18.04/x86_64/php-$PHP.tar.bz2 -O - | tar -xj) &
124124
done
125125
wait
126126
)

0 commit comments

Comments
 (0)