Compare commits

...

7 Commits

Author SHA1 Message Date
Denis S. Soldatov aka General-Beck
1024b4bcfd add snap artifacts 2018-02-14 04:59:42 +03:00
Denis S. Soldatov aka General-Beck
623d75d276 skip aura-test.sh
https://github.com/paritytech/parity/pull/6078
2018-02-14 04:13:04 +03:00
Denis S. Soldatov aka General-Beck
fe72a32158 Update .gitlab-ci.yml
snap build switch to https://hub.docker.com/r/snapcore/snapcraft/
2018-02-14 03:56:54 +03:00
Denis S. Soldatov aka General-Beck
f564d6f806 Update gitlab-build.sh 2018-02-14 03:46:57 +03:00
Denis S. Soldatov aka General-Beck
fb3b543672 Update snapcraft.yaml 2018-02-14 02:40:46 +03:00
Denis S. Soldatov aka General-Beck
ee52302eb9 Update gitlab-build.sh 2018-02-14 02:39:29 +03:00
5chdn
cda38941b4 Fix snapcraft nightly 2018-02-13 22:06:32 +01:00
4 changed files with 31 additions and 35 deletions

View File

@@ -130,7 +130,7 @@ linux-aarch64:
name: "aarch64-unknown-linux-gnu_parity"
linux-snap:
stage: build
image: parity/snapcraft:gitlab-ci
image: snapcore/snapcraft:stable
only:
- stable
- beta
@@ -142,7 +142,7 @@ linux-snap:
- rust-stable
artifacts:
paths:
- scripts/parity_*_amd64.snap
- parity.zip
name: "stable-x86_64-unknown-snap-gnu_parity"
allow_failure: true
darwin:

View File

@@ -306,16 +306,34 @@ case $BUILD_PLATFORM in
updater_push_release
;;
x86_64-unknown-snap-gnu)
cd snap
ARC="amd64"
EXT="snap"
rm -rf *snap
sed -i 's/master/'"$VER"'/g' snapcraft.yaml
snapcraft
cp "parity_"$CI_BUILD_REF_NAME"_amd64.snap" "parity_"$VER"_amd64.snap"
$MD5_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
$SHA256_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.sha256"
push_binaries
apt install -y expect zip
snapcraft clean
echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
if [[ "$CI_BUILD_REF_NAME" = "stable" || "$VER" == *1.8* ]];
then
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
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)
set_env_win

View File

@@ -18,9 +18,9 @@ rust_test () {
then echo "Skipping Rust tests since no Rust files modified.";
else ./test.sh || exit $?;
fi
if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]];
then sh scripts/aura-test.sh || exit $?;
fi
# if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]];
# then sh scripts/aura-test.sh || exit $?;
# fi
}
coverage_test () {
git submodule update --init --recursive

View File

@@ -1,22 +0,0 @@
name: parity
version: master
summary: Fast, light, robust Ethereum implementation
description: |
Parity's goal is to be the fastest, lightest, and most secure Ethereum
client. We are developing Parity using the sophisticated and cutting-edge
Rust programming language. Parity is licensed under the GPLv3, and can be
used for all your Ethereum needs.
grade: devel
confinement: strict
apps:
parity:
command: parity
plugs: [network, network-bind]
parts:
parity:
source: .
plugin: rust
build-packages: [g++, libudev-dev, libssl-dev, make, pkg-config]