Update gitlab-build.sh
This commit is contained in:
parent
cda38941b4
commit
ee52302eb9
@ -306,16 +306,33 @@ case $BUILD_PLATFORM in
|
|||||||
updater_push_release
|
updater_push_release
|
||||||
;;
|
;;
|
||||||
x86_64-unknown-snap-gnu)
|
x86_64-unknown-snap-gnu)
|
||||||
cd snap
|
|
||||||
ARC="amd64"
|
ARC="amd64"
|
||||||
EXT="snap"
|
EXT="snap"
|
||||||
rm -rf *snap
|
snapcraft clean
|
||||||
sed -i 's/git/'"$VER"'/g' snapcraft.yaml
|
echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
|
||||||
snapcraft
|
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
|
||||||
cp "parity_"$CI_BUILD_REF_NAME"_amd64.snap" "parity_"$VER"_amd64.snap"
|
if [[ "$CI_BUILD_REF_NAME" = "stable" || "$VER" == *1.8* ]];
|
||||||
$MD5_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
|
then
|
||||||
$SHA256_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.sha256"
|
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
|
||||||
push_binaries
|
fi
|
||||||
|
mv -f snap/snapcraft.yaml snapcraft.yaml
|
||||||
|
snapcraft -d
|
||||||
|
snapcraft_login=$(expect -c "
|
||||||
|
spawn snapcraft login
|
||||||
|
expect \"Email:\"
|
||||||
|
send \"$SNAP_EMAIL\n\"
|
||||||
|
expect \"Password:\"
|
||||||
|
send \"$SNAP_PASS\n\"
|
||||||
|
expect \"\$\"
|
||||||
|
")
|
||||||
|
echo "$snapcraft_login"
|
||||||
|
snapcraft push "parity_"$VER"_amd64.snap"
|
||||||
|
snapcraft status parity
|
||||||
|
snapcraft logout
|
||||||
|
md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
|
||||||
|
echo "add artifacts to archive"
|
||||||
|
rm -rf parity.zip
|
||||||
|
zip -r parity.zip "parity_"$VER"_amd64.snap" "parity_"$VER"_amd64.snap.md5"
|
||||||
;;
|
;;
|
||||||
x86_64-pc-windows-msvc)
|
x86_64-pc-windows-msvc)
|
||||||
set_env_win
|
set_env_win
|
||||||
|
Loading…
Reference in New Issue
Block a user