snapcraft push beta
This commit is contained in:
parent
e09bef98fb
commit
aca9f13d45
@ -18,9 +18,9 @@ linux-stable:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust:gitlab-ci
|
image: parity/rust:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- rustup default stable
|
- rustup default stable
|
||||||
@ -36,9 +36,9 @@ linux-stable-debian:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-debian:gitlab-ci
|
image: parity/rust-debian:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- export LIBSSL="libssl1.1 (>=1.1.0)"
|
- export LIBSSL="libssl1.1 (>=1.1.0)"
|
||||||
@ -53,9 +53,9 @@ linux-centos:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-centos:gitlab-ci
|
image: parity/rust-centos:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-centos-gnu x86_64-unknown-linux-gnu x86_64 gcc g++
|
- scripts/gitlab-build.sh x86_64-unknown-centos-gnu x86_64-unknown-linux-gnu x86_64 gcc g++
|
||||||
@ -69,9 +69,9 @@ linux-i686:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-i686:gitlab-ci
|
image: parity/rust-i686:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh i686-unknown-linux-gnu i686-unknown-linux-gnu i386 gcc g++
|
- scripts/gitlab-build.sh i686-unknown-linux-gnu i686-unknown-linux-gnu i386 gcc g++
|
||||||
@ -85,9 +85,9 @@ linux-armv7:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-armv7:gitlab-ci
|
image: parity/rust-armv7:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh armv7-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++
|
- scripts/gitlab-build.sh armv7-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++
|
||||||
@ -101,9 +101,9 @@ linux-arm:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-arm:gitlab-ci
|
image: parity/rust-arm:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh arm-unknown-linux-gnueabihf arm-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++
|
- scripts/gitlab-build.sh arm-unknown-linux-gnueabihf arm-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++
|
||||||
@ -117,9 +117,9 @@ linux-aarch64:
|
|||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-arm64:gitlab-ci
|
image: parity/rust-arm64:gitlab-ci
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh aarch64-unknown-linux-gnu aarch64-unknown-linux-gnu arm64 aarch64-linux-gnu-gcc aarch64-linux-gnu-g++
|
- scripts/gitlab-build.sh aarch64-unknown-linux-gnu aarch64-unknown-linux-gnu arm64 aarch64-linux-gnu-gcc aarch64-linux-gnu-g++
|
||||||
@ -143,15 +143,15 @@ linux-snap:
|
|||||||
- rust-stable
|
- rust-stable
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- scripts/parity_*_amd64.snap
|
- snap/parity.zip
|
||||||
name: "stable-x86_64-unknown-snap-gnu_parity"
|
name: "stable-x86_64-unknown-snap-gnu_parity"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
darwin:
|
darwin:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh x86_64-apple-darwin x86_64-apple-darwin macos gcc g++
|
- scripts/gitlab-build.sh x86_64-apple-darwin x86_64-apple-darwin macos gcc g++
|
||||||
@ -167,9 +167,9 @@ windows:
|
|||||||
untracked: true
|
untracked: true
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- stable
|
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- sh scripts/gitlab-build.sh x86_64-pc-windows-msvc x86_64-pc-windows-msvc installer "" "" ""
|
- sh scripts/gitlab-build.sh x86_64-pc-windows-msvc x86_64-pc-windows-msvc installer "" "" ""
|
||||||
@ -182,6 +182,8 @@ windows:
|
|||||||
docker-build:
|
docker-build:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
- triggers
|
||||||
before_script:
|
before_script:
|
||||||
@ -244,8 +246,8 @@ js-release:
|
|||||||
stage: js-build
|
stage: js-build
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- beta
|
|
||||||
- stable
|
- stable
|
||||||
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
- triggers
|
||||||
image: parity/rust:gitlab-ci
|
image: parity/rust:gitlab-ci
|
||||||
|
@ -270,15 +270,33 @@ case $BUILD_PLATFORM in
|
|||||||
push_release
|
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/master/'"$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" ]];
|
||||||
|
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"
|
md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
|
||||||
push_binaries
|
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
|
||||||
|
@ -4,5 +4,5 @@ Encoding=UTF-8
|
|||||||
Name=parity
|
Name=parity
|
||||||
Comment=Fast, light, robust Ethereum implementation
|
Comment=Fast, light, robust Ethereum implementation
|
||||||
Exec=parity
|
Exec=parity
|
||||||
Icon=${SNAP}/meta/gui/icon.png
|
Icon=/usr/share/pixmaps/icon.png
|
||||||
Terminal=true
|
Terminal=true
|
||||||
|
@ -13,9 +13,20 @@ confinement: strict
|
|||||||
apps:
|
apps:
|
||||||
parity:
|
parity:
|
||||||
command: parity
|
command: parity
|
||||||
plugs: [network, network-bind, mount-observe, x11, unity7]
|
plugs: [home, network, network-bind, mount-observe, x11, unity7, desktop, desktop-legacy, wayland]
|
||||||
|
desktop: usr/share/applications/parity.desktop
|
||||||
|
|
||||||
|
icon: snap/gui/icon.png
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
|
desktop-icon:
|
||||||
|
source: ./snap
|
||||||
|
plugin: nil
|
||||||
|
prepare: |
|
||||||
|
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
||||||
|
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
|
||||||
|
cp -v gui/parity.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
|
||||||
|
cp -v gui/icon.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/
|
||||||
parity:
|
parity:
|
||||||
source: .
|
source: .
|
||||||
plugin: rust
|
plugin: rust
|
||||||
|
Loading…
Reference in New Issue
Block a user