fix snap build master (#7896)

add rhash
This commit is contained in:
Denis S. Soldatov aka General-Beck 2018-02-15 00:19:59 +03:00 committed by Afri Schoedon
parent d1815eec55
commit 5d6e7e1439

View File

@ -305,14 +305,15 @@ case $BUILD_PLATFORM in
push_binaries push_binaries
updater_push_release updater_push_release
;; ;;
x86_64-unknown-snap-gnu)
x86_64-unknown-snap-gnu) x86_64-unknown-snap-gnu)
ARC="amd64" ARC="amd64"
EXT="snap" EXT="snap"
apt install -y expect zip apt install -y expect zip rhash
snapcraft clean snapcraft clean
echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image" echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
if [[ "$CI_BUILD_REF_NAME" = "stable" || "$VER" == *1.8* ]]; if [[ "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.9* ]];
then then
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml; sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
fi fi
@ -330,10 +331,11 @@ case $BUILD_PLATFORM in
snapcraft push "parity_"$VER"_amd64.snap" snapcraft push "parity_"$VER"_amd64.snap"
snapcraft status parity snapcraft status parity
snapcraft logout snapcraft logout
md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5" $MD5_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
$SHA256_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.sha256"
echo "add artifacts to archive" echo "add artifacts to archive"
rm -rf parity.zip rm -rf parity.zip
zip -r parity.zip "parity_"$VER"_amd64.snap" "parity_"$VER"_amd64.snap.md5" zip -r parity.zip "parity_"$VER"_amd64.snap" "parity_"$VER"_amd64.snap.md5" "parity_"$VER"_amd64.snap.sha256"
;; ;;
x86_64-pc-windows-msvc) x86_64-pc-windows-msvc)
set_env_win set_env_win