Fix build scripts

This commit is contained in:
Daniil Gentili 2019-12-26 20:05:06 +01:00
parent b9f3acfaa6
commit aa8a1e8c37
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 6 additions and 4 deletions

View File

@ -40,9 +40,9 @@ echo '{
]
}' > composer.json
composer config platform.php "7.4"
[ $PHP_MAJOR_VERSION -eq 5 ] && composer require dstuecken/php7ify
composer clearcache
composer update
[ $PHP_MAJOR_VERSION -eq 5 ] && composer require dstuecken/php7ify
composer dumpautoload --optimize
cp -a $madelinePath/src vendor/danog/madelineproto/
cd ..
@ -57,7 +57,7 @@ cd ..
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
cd phar7
$madelinePath/tests/conversion/before-5.sh
$madelinePath/tests/conversion/prepare-5.sh
cd ..
php7.3 $php7to5 convert --copy-all phar7 phar5 >/dev/null
@ -77,7 +77,7 @@ cd ..
[ -f $HOME/.config/composer/vendor/bin/php7to70 ] && php7to70=$HOME/.config/composer/vendor/bin/php7to70
cd phar7
$madelinePath/tests/conversion/before-70.sh
$madelinePath/tests/conversion/prepare-70.sh
cd ..
$php7to70 convert --copy-all phar7 phar5 >/dev/null

View File

@ -36,7 +36,10 @@ echo '{
}
]
}' > composer.json
composer config platform.php "7.4"
#composer clearcache
composer update
composer dumpautoload --optimize
$madelinePath/tests/conversion/prepare-$1.sh
@ -46,7 +49,6 @@ mv newVendor vendor
$madelinePath/tests/conversion/after-$1.sh
composer dumpautoload --optimize
cd $madelinePath
if [ $1 -eq 5 ];then