diff --git a/.travis.yml b/.travis.yml index c7906be1e..2a9ec77f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,6 @@ php: before_install: - echo "phar.readonly = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini -- sudo add-apt-repository ppa:ondrej/php -y -- sudo apt-get update -q -- sudo apt-get install php7.3-cli php7.3-json php7.3-mbstring php7.3-curl php7.3-xml php7.3-json -y script: - tests/makephar.sh diff --git a/tests/makephar.sh b/tests/makephar.sh index 060c317dd..1b8bd0f5d 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -48,7 +48,11 @@ cp -a $madelinePath/src vendor/danog/madelineproto/ cd .. [ $PHP_MAJOR_VERSION -eq 5 ] && { - composer global require spatie/7to5 dev-master#fdb11a2 + sudo add-apt-repository ppa:ondrej/php -y + sudo apt-get update -q + sudo apt-get install php7.3-cli php7.3-json php7.3-mbstring php7.3-curl php7.3-xml php7.3-json -y + + composer global require spatie/7to5 dev-master#5c65f68 [ -f $HOME/.composer/vendor/bin/php7to5 ] && php7to5=$HOME/.composer/vendor/bin/php7to5 [ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5