Fix build scripts
This commit is contained in:
parent
b9f3acfaa6
commit
aa8a1e8c37
@ -40,9 +40,9 @@ echo '{
|
|||||||
]
|
]
|
||||||
}' > composer.json
|
}' > composer.json
|
||||||
composer config platform.php "7.4"
|
composer config platform.php "7.4"
|
||||||
[ $PHP_MAJOR_VERSION -eq 5 ] && composer require dstuecken/php7ify
|
|
||||||
composer clearcache
|
composer clearcache
|
||||||
composer update
|
composer update
|
||||||
|
[ $PHP_MAJOR_VERSION -eq 5 ] && composer require dstuecken/php7ify
|
||||||
composer dumpautoload --optimize
|
composer dumpautoload --optimize
|
||||||
cp -a $madelinePath/src vendor/danog/madelineproto/
|
cp -a $madelinePath/src vendor/danog/madelineproto/
|
||||||
cd ..
|
cd ..
|
||||||
@ -57,7 +57,7 @@ cd ..
|
|||||||
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
||||||
|
|
||||||
cd phar7
|
cd phar7
|
||||||
$madelinePath/tests/conversion/before-5.sh
|
$madelinePath/tests/conversion/prepare-5.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
php7.3 $php7to5 convert --copy-all phar7 phar5 >/dev/null
|
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
|
[ -f $HOME/.config/composer/vendor/bin/php7to70 ] && php7to70=$HOME/.config/composer/vendor/bin/php7to70
|
||||||
|
|
||||||
cd phar7
|
cd phar7
|
||||||
$madelinePath/tests/conversion/before-70.sh
|
$madelinePath/tests/conversion/prepare-70.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
$php7to70 convert --copy-all phar7 phar5 >/dev/null
|
$php7to70 convert --copy-all phar7 phar5 >/dev/null
|
||||||
|
@ -36,7 +36,10 @@ echo '{
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}' > composer.json
|
}' > composer.json
|
||||||
|
composer config platform.php "7.4"
|
||||||
|
#composer clearcache
|
||||||
composer update
|
composer update
|
||||||
|
composer dumpautoload --optimize
|
||||||
|
|
||||||
$madelinePath/tests/conversion/prepare-$1.sh
|
$madelinePath/tests/conversion/prepare-$1.sh
|
||||||
|
|
||||||
@ -46,7 +49,6 @@ mv newVendor vendor
|
|||||||
|
|
||||||
$madelinePath/tests/conversion/after-$1.sh
|
$madelinePath/tests/conversion/after-$1.sh
|
||||||
|
|
||||||
composer dumpautoload --optimize
|
|
||||||
|
|
||||||
cd $madelinePath
|
cd $madelinePath
|
||||||
if [ $1 -eq 5 ];then
|
if [ $1 -eq 5 ];then
|
||||||
|
Loading…
Reference in New Issue
Block a user