Backport Master CI PRs to Beta (#7890)
* Resolve conflicts * Resolve conflicts * Update gitlab-build.sh (#7855) fix build ```version``` after https://github.com/paritytech/parity/pull/7723 * Resolve conflicts * Update gitlab-test.sh (#7883) * Update gitlab-test.sh https://github.com/paritytech/parity/issues/7871 * Update aura-test.sh * Backport master ci prs * Bump beta to 1.9.3 * Make track beta * Downgrade rustc_version
This commit is contained in:
parent
b60511e3d2
commit
1de095f3bd
@ -9,7 +9,7 @@ trim_trailing_whitespace=true
|
|||||||
max_line_length=120
|
max_line_length=120
|
||||||
insert_final_newline=true
|
insert_final_newline=true
|
||||||
|
|
||||||
[.travis.yml]
|
[*.{yml,sh}]
|
||||||
indent_style=space
|
indent_style=space
|
||||||
indent_size=2
|
indent_size=2
|
||||||
tab_width=8
|
tab_width=8
|
||||||
|
@ -18,14 +18,14 @@ 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
|
||||||
# ARGUMENTS: 1. BUILD_PLATFORM (target for binaries) 2. PLATFORM (target for cargo) 3. ARC (architecture) 4. & 5. CC & CXX flags
|
# ARGUMENTS: 1. BUILD_PLATFORM (target for binaries) 2. PLATFORM (target for cargo) 3. ARC (architecture) 4. & 5. CC & CXX flags 6. binary identifier
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu amd64 gcc g++
|
- scripts/gitlab-build.sh x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu amd64 gcc g++ ubuntu
|
||||||
tags:
|
tags:
|
||||||
- rust-stable
|
- rust-stable
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -36,13 +36,13 @@ 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)"
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-debian-gnu x86_64-unknown-linux-gnu amd64 gcc g++
|
- scripts/gitlab-build.sh x86_64-unknown-debian-gnu x86_64-unknown-linux-gnu amd64 gcc g++ debian
|
||||||
tags:
|
tags:
|
||||||
- rust-debian
|
- rust-debian
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -53,12 +53,12 @@ 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++ centos
|
||||||
tags:
|
tags:
|
||||||
- rust-centos
|
- rust-centos
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -69,12 +69,12 @@ 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++ ubuntu
|
||||||
tags:
|
tags:
|
||||||
- rust-i686
|
- rust-i686
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -85,12 +85,12 @@ 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++ ubuntu
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -101,12 +101,12 @@ 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++ ubuntu
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -117,12 +117,12 @@ 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++ ubuntu
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -131,30 +131,30 @@ linux-aarch64:
|
|||||||
name: "aarch64-unknown-linux-gnu_parity"
|
name: "aarch64-unknown-linux-gnu_parity"
|
||||||
linux-snap:
|
linux-snap:
|
||||||
stage: build
|
stage: build
|
||||||
image: parity/snapcraft:gitlab-ci
|
image: snapcore/snapcraft:stable
|
||||||
only:
|
only:
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-snap-gnu x86_64-unknown-linux-gnu amd64 gcc g++
|
- scripts/gitlab-build.sh x86_64-unknown-snap-gnu x86_64-unknown-linux-gnu amd64 gcc g++ snap
|
||||||
tags:
|
tags:
|
||||||
- rust-stable
|
- rust-stable
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- snap/parity.zip
|
- 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++ macos
|
||||||
tags:
|
tags:
|
||||||
- osx
|
- osx
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -167,12 +167,12 @@ 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 "" "" windows
|
||||||
tags:
|
tags:
|
||||||
- rust-windows
|
- rust-windows
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -182,14 +182,12 @@ windows:
|
|||||||
docker-build:
|
docker-build:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- stable
|
|
||||||
- beta
|
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
- triggers
|
||||||
before_script:
|
before_script:
|
||||||
- docker info
|
- docker info
|
||||||
script:
|
script:
|
||||||
- DOCKER_TAG=$CI_BUILD_REF_NAME
|
- if [ "$CI_BUILD_REF_NAME" == "beta-release" ]; then DOCKER_TAG="latest"; else DOCKER_TAG=$CI_BUILD_REF_NAME; fi
|
||||||
- echo "Tag:" $DOCKER_TAG
|
- echo "Tag:" $DOCKER_TAG
|
||||||
- docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity
|
- docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity
|
||||||
- scripts/docker-build.sh $DOCKER_TAG
|
- scripts/docker-build.sh $DOCKER_TAG
|
||||||
@ -262,8 +260,6 @@ push-release:
|
|||||||
- triggers
|
- triggers
|
||||||
image: parity/rust:gitlab-ci
|
image: parity/rust:gitlab-ci
|
||||||
script:
|
script:
|
||||||
- rustup default stable
|
- scripts/gitlab-push-release.sh
|
||||||
- curl --data "secret=$RELEASES_SECRET" http://update.parity.io:1337/push-release/$CI_BUILD_REF_NAME/$CI_BUILD_REF
|
|
||||||
- curl --data "secret=$RELEASES_SECRET" http://update.parity.io:1338/push-release/$CI_BUILD_REF_NAME/$CI_BUILD_REF
|
|
||||||
tags:
|
tags:
|
||||||
- curl
|
- curl
|
||||||
|
13
Cargo.lock
generated
13
Cargo.lock
generated
@ -1914,7 +1914,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parity"
|
name = "parity"
|
||||||
version = "1.9.2"
|
version = "1.9.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"app_dirs 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"app_dirs 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@ -1962,7 +1962,7 @@ dependencies = [
|
|||||||
"parity-rpc 1.9.0",
|
"parity-rpc 1.9.0",
|
||||||
"parity-rpc-client 1.4.0",
|
"parity-rpc-client 1.4.0",
|
||||||
"parity-updater 1.9.0",
|
"parity-updater 1.9.0",
|
||||||
"parity-version 1.9.2",
|
"parity-version 1.9.3",
|
||||||
"parity-whisper 0.1.0",
|
"parity-whisper 0.1.0",
|
||||||
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"path 0.1.0",
|
"path 0.1.0",
|
||||||
@ -2010,7 +2010,7 @@ dependencies = [
|
|||||||
"parity-hash-fetch 1.9.0",
|
"parity-hash-fetch 1.9.0",
|
||||||
"parity-reactor 0.1.0",
|
"parity-reactor 0.1.0",
|
||||||
"parity-ui 1.9.0",
|
"parity-ui 1.9.0",
|
||||||
"parity-version 1.9.2",
|
"parity-version 1.9.3",
|
||||||
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rand 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rand 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@ -2158,7 +2158,7 @@ dependencies = [
|
|||||||
"order-stat 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"order-stat 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"parity-reactor 0.1.0",
|
"parity-reactor 0.1.0",
|
||||||
"parity-updater 1.9.0",
|
"parity-updater 1.9.0",
|
||||||
"parity-version 1.9.2",
|
"parity-version 1.9.3",
|
||||||
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"pretty_assertions 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"pretty_assertions 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rand 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rand 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@ -2266,7 +2266,7 @@ dependencies = [
|
|||||||
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"parity-hash-fetch 1.9.0",
|
"parity-hash-fetch 1.9.0",
|
||||||
"parity-reactor 0.1.0",
|
"parity-reactor 0.1.0",
|
||||||
"parity-version 1.9.2",
|
"parity-version 1.9.3",
|
||||||
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"path 0.1.0",
|
"path 0.1.0",
|
||||||
"semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
@ -2275,12 +2275,13 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parity-version"
|
name = "parity-version"
|
||||||
version = "1.9.2"
|
version = "1.9.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ethcore-bytes 0.1.0",
|
"ethcore-bytes 0.1.0",
|
||||||
"rlp 0.2.1",
|
"rlp 0.2.1",
|
||||||
"rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"target_info 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"target_info 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"toml 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"vergen 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"vergen 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
description = "Parity Ethereum client"
|
description = "Parity Ethereum client"
|
||||||
name = "parity"
|
name = "parity"
|
||||||
version = "1.9.2"
|
version = "1.9.3"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
@ -462,7 +462,7 @@
|
|||||||
<key>OVERWRITE_PERMISSIONS</key>
|
<key>OVERWRITE_PERMISSIONS</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>VERSION</key>
|
<key>VERSION</key>
|
||||||
<string>1.9.2</string>
|
<string>1.9.3</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>UUID</key>
|
<key>UUID</key>
|
||||||
<string>2DCD5B81-7BAF-4DA1-9251-6274B089FD36</string>
|
<string>2DCD5B81-7BAF-4DA1-9251-6274B089FD36</string>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
!define DESCRIPTION "Fast, light, robust Ethereum implementation"
|
!define DESCRIPTION "Fast, light, robust Ethereum implementation"
|
||||||
!define VERSIONMAJOR 1
|
!define VERSIONMAJOR 1
|
||||||
!define VERSIONMINOR 9
|
!define VERSIONMINOR 9
|
||||||
!define VERSIONBUILD 2
|
!define VERSIONBUILD 3
|
||||||
!define ARGS ""
|
!define ARGS ""
|
||||||
!define FIRST_START_ARGS "--mode=passive ui"
|
!define FIRST_START_ARGS "--mode=passive ui"
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e # fail on any error
|
||||||
|
set -u # treat unset variables as error
|
||||||
|
|
||||||
cargo build -j $(nproc) --release --features final $CARGOFLAGS
|
cargo build -j $(nproc) --release --features final $CARGOFLAGS
|
||||||
git clone https://github.com/paritytech/parity-import-tests
|
git clone https://github.com/paritytech/parity-import-tests
|
||||||
cp target/release/parity parity-import-tests/aura/parity
|
cp target/release/parity parity-import-tests/aura/parity
|
||||||
cd parity-import-tests/aura
|
cd parity-import-tests/aura
|
||||||
echo "Start Aura test"
|
echo "Start Aura test"
|
||||||
parity import blocks.rlp --chain chain.json
|
./parity import blocks.rlp --chain chain.json
|
||||||
parity restore snap --chain chain.json
|
./parity restore snap --chain chain.json
|
||||||
echo "Aura test complete"
|
echo "Aura test complete"
|
||||||
|
@ -2,16 +2,18 @@
|
|||||||
|
|
||||||
set -e # fail on any error
|
set -e # fail on any error
|
||||||
set -u # treat unset variables as error
|
set -u # treat unset variables as error
|
||||||
#ARGUMENTS: 1. BUILD_PLATFORM (target for binaries) 2. PLATFORM (target for cargo) 3. ARC (architecture) 4. & 5. CC & CXX flags
|
#ARGUMENTS: 1. BUILD_PLATFORM (target for binaries) 2. PLATFORM (target for cargo) 3. ARC (architecture) 4. & 5. CC & CXX flags 6. binary identifier
|
||||||
BUILD_PLATFORM=$1
|
BUILD_PLATFORM=$1
|
||||||
PLATFORM=$2
|
PLATFORM=$2
|
||||||
ARC=$3
|
ARC=$3
|
||||||
CC=$4
|
CC=$4
|
||||||
CXX=$5
|
CXX=$5
|
||||||
VER="$(grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")"
|
IDENT=$6
|
||||||
|
VER="$(grep -m 1 "version =" Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")"
|
||||||
S3WIN=""
|
S3WIN=""
|
||||||
echo "--------------------"
|
echo "--------------------"
|
||||||
echo "Build for platform: " $BUILD_PLATFORM
|
echo "Build for platform: " $BUILD_PLATFORM
|
||||||
|
echo "Build identifier: " $IDENT
|
||||||
echo "Cargo target: " $PLATFORM
|
echo "Cargo target: " $PLATFORM
|
||||||
echo "CC&CXX flags: " $CC ", " $CXX
|
echo "CC&CXX flags: " $CC ", " $CXX
|
||||||
echo "Architecture: " $ARC
|
echo "Architecture: " $ARC
|
||||||
@ -20,6 +22,14 @@ echo "Parity version: " $VER
|
|||||||
echo "Branch: " $CI_BUILD_REF_NAME
|
echo "Branch: " $CI_BUILD_REF_NAME
|
||||||
echo "--------------------"
|
echo "--------------------"
|
||||||
|
|
||||||
|
echo "Rhash version:"
|
||||||
|
# NOTE for md5 and sha256 we want to display filename as well
|
||||||
|
# hence we use --* instead of -p *
|
||||||
|
MD5_BIN="rhash --md5"
|
||||||
|
SHA256_BIN="rhash --sha256"
|
||||||
|
# NOTE For SHA3 we need only hash (hence -p)
|
||||||
|
SHA3_BIN="rhash -p %{sha3-256}"
|
||||||
|
|
||||||
set_env () {
|
set_env () {
|
||||||
echo "Set ENVIROMENT"
|
echo "Set ENVIROMENT"
|
||||||
export HOST_CC=gcc
|
export HOST_CC=gcc
|
||||||
@ -50,21 +60,34 @@ build () {
|
|||||||
echo "Build ethkey-cli:"
|
echo "Build ethkey-cli:"
|
||||||
cargo build --target $PLATFORM --release -p ethkey-cli
|
cargo build --target $PLATFORM --release -p ethkey-cli
|
||||||
}
|
}
|
||||||
strip_md5 () {
|
strip_binaries () {
|
||||||
echo "Strip binaries:"
|
echo "Strip binaries:"
|
||||||
$STRIP_BIN -v target/$PLATFORM/release/parity
|
$STRIP_BIN -v target/$PLATFORM/release/parity
|
||||||
$STRIP_BIN -v target/$PLATFORM/release/parity-evm
|
$STRIP_BIN -v target/$PLATFORM/release/parity-evm
|
||||||
$STRIP_BIN -v target/$PLATFORM/release/ethstore
|
$STRIP_BIN -v target/$PLATFORM/release/ethstore
|
||||||
$STRIP_BIN -v target/$PLATFORM/release/ethkey;
|
$STRIP_BIN -v target/$PLATFORM/release/ethkey;
|
||||||
export SHA3=$(rhash --sha3-256 target/$PLATFORM/release/parity -p %h)
|
}
|
||||||
|
calculate_checksums () {
|
||||||
echo "Checksum calculation:"
|
echo "Checksum calculation:"
|
||||||
|
rhash --version
|
||||||
rm -rf *.md5
|
rm -rf *.md5
|
||||||
export SHA3=$(rhash --sha3-256 target/$PLATFORM/release/parity -p %h)
|
rm -rf *.sha256
|
||||||
echo "Parity file SHA3:" $SHA3
|
|
||||||
md5sum target/$PLATFORM/release/parity > parity.md5
|
export SHA3="$($SHA3_BIN target/$PLATFORM/release/parity$S3WIN)"
|
||||||
md5sum target/$PLATFORM/release/parity-evm > parity-evm.md5
|
# NOTE rhash 1.3.1 doesnt support keccak, workaround
|
||||||
md5sum target/$PLATFORM/release/ethstore > ethstore.md5
|
if [ "$SHA3" == "%{sha3-256}" ]; then
|
||||||
md5sum target/$PLATFORM/release/ethkey > ethkey.md5
|
export SHA3="$(target/$PLATFORM/release/parity$S3WIN tools hash target/$PLATFORM/release/parity$S3WIN)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Parity file SHA3: $SHA3"
|
||||||
|
$MD5_BIN target/$PLATFORM/release/parity$S3WIN > parity$S3WIN.md5
|
||||||
|
$SHA256_BIN target/$PLATFORM/release/parity$S3WIN > parity$S3WIN.sha256
|
||||||
|
$MD5_BIN target/$PLATFORM/release/parity-evm$S3WIN > parity-evm$S3WIN.md5
|
||||||
|
$SHA256_BIN target/$PLATFORM/release/parity-evm$S3WIN > parity-evm$S3WIN.sha256
|
||||||
|
$MD5_BIN target/$PLATFORM/release/ethstore$S3WIN > ethstore$S3WIN.md5
|
||||||
|
$SHA256_BIN target/$PLATFORM/release/ethstore$S3WIN > ethstore$S3WIN.sha256
|
||||||
|
$MD5_BIN target/$PLATFORM/release/ethkey$S3WIN > ethkey$S3WIN.md5
|
||||||
|
$SHA256_BIN target/$PLATFORM/release/ethkey$S3WIN > ethkey$S3WIN.sha256
|
||||||
}
|
}
|
||||||
make_deb () {
|
make_deb () {
|
||||||
rm -rf deb
|
rm -rf deb
|
||||||
@ -98,8 +121,9 @@ make_deb () {
|
|||||||
cp target/$PLATFORM/release/parity-evm deb/usr/bin/parity-evm
|
cp target/$PLATFORM/release/parity-evm deb/usr/bin/parity-evm
|
||||||
cp target/$PLATFORM/release/ethstore deb/usr/bin/ethstore
|
cp target/$PLATFORM/release/ethstore deb/usr/bin/ethstore
|
||||||
cp target/$PLATFORM/release/ethkey deb/usr/bin/ethkey
|
cp target/$PLATFORM/release/ethkey deb/usr/bin/ethkey
|
||||||
dpkg-deb -b deb "parity_"$VER"_"$ARC".deb"
|
dpkg-deb -b deb "parity_"$VER"_"$IDENT"_"$ARC".deb"
|
||||||
md5sum "parity_"$VER"_"$ARC".deb" > "parity_"$VER"_"$ARC".deb.md5"
|
$MD5_BIN "parity_"$VER"_"$IDENT"_"$ARC".deb" > "parity_"$VER"_"$IDENT"_"$ARC".deb.md5"
|
||||||
|
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC".deb" > "parity_"$VER"_"$IDENT"_"$ARC".deb.sha256"
|
||||||
}
|
}
|
||||||
make_rpm () {
|
make_rpm () {
|
||||||
rm -rf /install
|
rm -rf /install
|
||||||
@ -108,9 +132,12 @@ make_rpm () {
|
|||||||
cp target/$PLATFORM/release/parity-evm /install/usr/bin/parity-evm
|
cp target/$PLATFORM/release/parity-evm /install/usr/bin/parity-evm
|
||||||
cp target/$PLATFORM/release/ethstore /install/usr/bin/ethstore
|
cp target/$PLATFORM/release/ethstore /install/usr/bin/ethstore
|
||||||
cp target/$PLATFORM/release/ethkey /install/usr/bin/ethkey
|
cp target/$PLATFORM/release/ethkey /install/usr/bin/ethkey
|
||||||
|
|
||||||
|
rm -rf "parity-"$VER"-1."$ARC".rpm" || true
|
||||||
fpm -s dir -t rpm -n parity -v $VER --epoch 1 --license GPLv3 -d openssl --provides parity --url https://parity.io --vendor "Parity Technologies" -a x86_64 -m "<devops@parity.io>" --description "Ethereum network client by Parity Technologies" -C /install/
|
fpm -s dir -t rpm -n parity -v $VER --epoch 1 --license GPLv3 -d openssl --provides parity --url https://parity.io --vendor "Parity Technologies" -a x86_64 -m "<devops@parity.io>" --description "Ethereum network client by Parity Technologies" -C /install/
|
||||||
cp "parity-"$VER"-1."$ARC".rpm" "parity_"$VER"_"$ARC".rpm"
|
cp "parity-"$VER"-1."$ARC".rpm" "parity_"$VER"_"$IDENT"_"$ARC".rpm"
|
||||||
md5sum "parity_"$VER"_"$ARC".rpm" > "parity_"$VER"_"$ARC".rpm.md5"
|
$MD5_BIN "parity_"$VER"_"$IDENT"_"$ARC".rpm" > "parity_"$VER"_"$IDENT"_"$ARC".rpm.md5"
|
||||||
|
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC".rpm" > "parity_"$VER"_"$IDENT"_"$ARC".rpm.sha256"
|
||||||
}
|
}
|
||||||
make_pkg () {
|
make_pkg () {
|
||||||
echo "make PKG"
|
echo "make PKG"
|
||||||
@ -123,19 +150,14 @@ make_pkg () {
|
|||||||
cd ..
|
cd ..
|
||||||
packagesbuild -v mac/Parity.pkgproj
|
packagesbuild -v mac/Parity.pkgproj
|
||||||
productsign --sign 'Developer ID Installer: PARITY TECHNOLOGIES LIMITED (P2PX3JU8FT)' target/release/Parity\ Ethereum.pkg target/release/Parity\ Ethereum-signed.pkg
|
productsign --sign 'Developer ID Installer: PARITY TECHNOLOGIES LIMITED (P2PX3JU8FT)' target/release/Parity\ Ethereum.pkg target/release/Parity\ Ethereum-signed.pkg
|
||||||
mv target/release/Parity\ Ethereum-signed.pkg "parity_"$VER"_"$ARC".pkg"
|
mv target/release/Parity\ Ethereum-signed.pkg "parity_"$VER"_"$IDENT"_"$ARC".pkg"
|
||||||
md5sum "parity_"$VER"_"$ARC"."$EXT >> "parity_"$VER"_"$ARC".pkg.md5"
|
$MD5_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT >> "parity_"$VER"_"$IDENT"_"$ARC".pkg.md5"
|
||||||
|
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT >> "parity_"$VER"_"$IDENT"_"$ARC".pkg.sha256"
|
||||||
|
}
|
||||||
|
sign_exe () {
|
||||||
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity.exe"
|
||||||
}
|
}
|
||||||
make_exe () {
|
make_exe () {
|
||||||
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity.exe"
|
|
||||||
SHA3=$(rhash --sha3-256 target/$PLATFORM/release/parity.exe -p %h)
|
|
||||||
echo "Checksum calculation:"
|
|
||||||
rm -rf *.md5
|
|
||||||
echo "Parity file SHA3:" $SHA3
|
|
||||||
rhash --md5 target/$PLATFORM/release/parity.exe -p %h > parity.exe.md5
|
|
||||||
rhash --md5 target/$PLATFORM/release/parity-evm.exe -p %h > parity-evm.exe.md5
|
|
||||||
rhash --md5 target/$PLATFORM/release/ethstore.exe -p %h > ethstore.exe.md5
|
|
||||||
rhash --md5 target/$PLATFORM/release/ethkey.exe -p %h > ethkey.exe.md5
|
|
||||||
./msbuild.cmd
|
./msbuild.cmd
|
||||||
./sign.cmd $keyfile $certpass windows/ptray/x64/release/ptray.exe
|
./sign.cmd $keyfile $certpass windows/ptray/x64/release/ptray.exe
|
||||||
cd nsis
|
cd nsis
|
||||||
@ -143,9 +165,10 @@ make_exe () {
|
|||||||
echo "makensis.exe installer.nsi" > nsis.cmd
|
echo "makensis.exe installer.nsi" > nsis.cmd
|
||||||
./nsis.cmd
|
./nsis.cmd
|
||||||
cd ..
|
cd ..
|
||||||
cp nsis/installer.exe "parity_"$VER"_"$ARC"."$EXT
|
cp nsis/installer.exe "parity_"$VER"_"$IDENT"_"$ARC"."$EXT
|
||||||
./sign.cmd $keyfile $certpass "parity_"$VER"_"$ARC"."$EXT
|
./sign.cmd $keyfile $certpass "parity_"$VER"_"$IDENT"_"$ARC"."$EXT
|
||||||
rhash --md5 "parity_"$VER"_"$ARC"."$EXT -p %h > "parity_"$VER"_"$ARC"."$EXT".md5"
|
$MD5_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT -p %h > "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".md5"
|
||||||
|
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT -p %h > "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".sha256"
|
||||||
}
|
}
|
||||||
push_binaries () {
|
push_binaries () {
|
||||||
echo "Push binaries to AWS S3"
|
echo "Push binaries to AWS S3"
|
||||||
@ -160,25 +183,36 @@ push_binaries () {
|
|||||||
aws s3 rm --recursive s3://$S3_BUCKET/$CI_BUILD_REF_NAME/$BUILD_PLATFORM
|
aws s3 rm --recursive s3://$S3_BUCKET/$CI_BUILD_REF_NAME/$BUILD_PLATFORM
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN --body target/$PLATFORM/release/parity$S3WIN
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN --body target/$PLATFORM/release/parity$S3WIN
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN.md5 --body parity$S3WIN.md5
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN.md5 --body parity$S3WIN.md5
|
||||||
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN.sha256 --body parity$S3WIN.sha256
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN --body target/$PLATFORM/release/parity-evm$S3WIN
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN --body target/$PLATFORM/release/parity-evm$S3WIN
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN.md5 --body parity-evm$S3WIN.md5
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN.md5 --body parity-evm$S3WIN.md5
|
||||||
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN.sha256 --body parity-evm$S3WIN.sha256
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN --body target/$PLATFORM/release/ethstore$S3WIN
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN --body target/$PLATFORM/release/ethstore$S3WIN
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN.md5 --body ethstore$S3WIN.md5
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN.md5 --body ethstore$S3WIN.md5
|
||||||
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN.sha256 --body ethstore$S3WIN.sha256
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN --body target/$PLATFORM/release/ethkey$S3WIN
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN --body target/$PLATFORM/release/ethkey$S3WIN
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN.md5 --body ethkey$S3WIN.md5
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN.md5 --body ethkey$S3WIN.md5
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/"parity_"$VER"_"$ARC"."$EXT --body "parity_"$VER"_"$ARC"."$EXT
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN.sha256 --body ethkey$S3WIN.sha256
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/"parity_"$VER"_"$ARC"."$EXT".md5" --body "parity_"$VER"_"$ARC"."$EXT".md5"
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/"parity_"$VER"_"$IDENT"_"$ARC"."$EXT --body "parity_"$VER"_"$IDENT"_"$ARC"."$EXT
|
||||||
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/"parity_"$VER"_"$IDENT"_"$ARC"."$EXT".md5" --body "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".md5"
|
||||||
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/"parity_"$VER"_"$IDENT"_"$ARC"."$EXT".sha256" --body "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".sha256"
|
||||||
}
|
}
|
||||||
make_archive () {
|
make_archive () {
|
||||||
echo "add artifacts to archive"
|
echo "add artifacts to archive"
|
||||||
rm -rf parity.zip
|
rm -rf parity.zip
|
||||||
zip -r parity.zip target/$PLATFORM/release/parity$S3WIN target/$PLATFORM/release/parity-evm$S3WIN target/$PLATFORM/release/ethstore$S3WIN target/$PLATFORM/release/ethkey$S3WIN parity$S3WIN.md5 parity-evm$S3WIN.md5 ethstore$S3WIN.md5 ethkey$S3WIN.md5
|
zip -r parity.zip target/$PLATFORM/release/parity$S3WIN target/$PLATFORM/release/parity-evm$S3WIN target/$PLATFORM/release/ethstore$S3WIN target/$PLATFORM/release/ethkey$S3WIN parity$S3WIN.md5 parity-evm$S3WIN.md5 ethstore$S3WIN.md5 ethkey$S3WIN.md5 parity$S3WIN.sha256 parity-evm$S3WIN.sha256 ethstore$S3WIN.sha256 ethkey$S3WIN.sha256
|
||||||
}
|
}
|
||||||
push_release () {
|
|
||||||
|
updater_push_release () {
|
||||||
echo "push release"
|
echo "push release"
|
||||||
curl --data "commit=$CI_BUILD_REF&sha3=$SHA3&filename=parity&secret=$RELEASES_SECRET" http://update.parity.io:1337/push-build/$CI_BUILD_REF_NAME/$PLATFORM
|
|
||||||
curl --data "commit=$CI_BUILD_REF&sha3=$SHA3&filename=parity&secret=$RELEASES_SECRET" http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$PLATFORM
|
DATA="commit=$CI_BUILD_REF&sha3=$SHA3&filename=parity$S3WIN&secret=$RELEASES_SECRET"
|
||||||
|
# Mainnet
|
||||||
|
source scripts/safe_curl.sh $DATA "http://update.parity.io:1337/push-build/$CI_BUILD_REF_NAME/$BUILD_PLATFORM"
|
||||||
|
# Kovan
|
||||||
|
source scripts/safe_curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$BUILD_PLATFORM"
|
||||||
}
|
}
|
||||||
|
|
||||||
case $BUILD_PLATFORM in
|
case $BUILD_PLATFORM in
|
||||||
x86_64-unknown-linux-gnu)
|
x86_64-unknown-linux-gnu)
|
||||||
#set strip bin
|
#set strip bin
|
||||||
@ -186,11 +220,12 @@ case $BUILD_PLATFORM in
|
|||||||
#package extention
|
#package extention
|
||||||
EXT="deb"
|
EXT="deb"
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
updater_push_release
|
||||||
;;
|
;;
|
||||||
x86_64-unknown-debian-gnu)
|
x86_64-unknown-debian-gnu)
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
@ -198,86 +233,88 @@ case $BUILD_PLATFORM in
|
|||||||
LIBSSL="libssl1.1 (>=1.1.0)"
|
LIBSSL="libssl1.1 (>=1.1.0)"
|
||||||
echo "Use libssl1.1 (>=1.1.0) for Debian builds"
|
echo "Use libssl1.1 (>=1.1.0) for Debian builds"
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
x86_64-unknown-centos-gnu)
|
x86_64-unknown-centos-gnu)
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
EXT="rpm"
|
EXT="rpm"
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_rpm
|
make_rpm
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
i686-unknown-linux-gnu)
|
i686-unknown-linux-gnu)
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
EXT="deb"
|
EXT="deb"
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
armv7-unknown-linux-gnueabihf)
|
armv7-unknown-linux-gnueabihf)
|
||||||
STRIP_BIN="arm-linux-gnueabihf-strip"
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
||||||
EXT="deb"
|
EXT="deb"
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
arm-unknown-linux-gnueabihf)
|
arm-unknown-linux-gnueabihf)
|
||||||
STRIP_BIN="arm-linux-gnueabihf-strip"
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
||||||
EXT="deb"
|
EXT="deb"
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
aarch64-unknown-linux-gnu)
|
aarch64-unknown-linux-gnu)
|
||||||
STRIP_BIN="aarch64-linux-gnu-strip"
|
STRIP_BIN="aarch64-linux-gnu-strip"
|
||||||
EXT="deb"
|
EXT="deb"
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_deb
|
make_deb
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
|
||||||
;;
|
;;
|
||||||
x86_64-apple-darwin)
|
x86_64-apple-darwin)
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
PLATFORM="x86_64-apple-darwin"
|
PLATFORM="x86_64-apple-darwin"
|
||||||
EXT="pkg"
|
EXT="pkg"
|
||||||
build
|
build
|
||||||
strip_md5
|
strip_binaries
|
||||||
|
calculate_checksums
|
||||||
make_pkg
|
make_pkg
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
updater_push_release
|
||||||
;;
|
;;
|
||||||
x86_64-unknown-snap-gnu)
|
x86_64-unknown-snap-gnu)
|
||||||
ARC="amd64"
|
ARC="amd64"
|
||||||
EXT="snap"
|
EXT="snap"
|
||||||
|
apt install -y expect zip
|
||||||
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" ]];
|
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: beta/' snap/snapcraft.yaml;
|
||||||
fi
|
fi
|
||||||
mv -f snap/snapcraft.yaml snapcraft.yaml
|
mv -f snap/snapcraft.yaml snapcraft.yaml
|
||||||
snapcraft -d
|
snapcraft -d
|
||||||
@ -293,18 +330,21 @@ 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
|
||||||
EXT="exe"
|
EXT="exe"
|
||||||
S3WIN=".exe"
|
S3WIN=".exe"
|
||||||
build
|
build
|
||||||
|
sign_exe
|
||||||
|
calculate_checksums
|
||||||
make_exe
|
make_exe
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
push_release
|
updater_push_release
|
||||||
esac
|
esac
|
||||||
|
12
scripts/gitlab-push-release.sh
Executable file
12
scripts/gitlab-push-release.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e # fail on any error
|
||||||
|
set -u # treat unset variables as error
|
||||||
|
|
||||||
|
DATA="secret=$RELEASES_SECRET"
|
||||||
|
|
||||||
|
echo "Pushing release to Mainnet"
|
||||||
|
./scripts/safe_curl.sh $DATA "http://update.parity.io:1337/push-release/$CI_BUILD_REF_NAME/$CI_BUILD_REF"
|
||||||
|
|
||||||
|
echo "Pushing release to Kovan"
|
||||||
|
./scripts/safe_curl.sh $DATA "http://update.parity.io:1338/push-release/$CI_BUILD_REF_NAME/$CI_BUILD_REF"
|
@ -21,11 +21,12 @@ rust_test () {
|
|||||||
rustup show
|
rustup show
|
||||||
if [[ "${RUST_FILES_MODIFIED}" == "0" ]];
|
if [[ "${RUST_FILES_MODIFIED}" == "0" ]];
|
||||||
then echo "Skipping Rust tests since no Rust files modified.";
|
then echo "Skipping Rust tests since no Rust files modified.";
|
||||||
else ./test.sh;
|
else ./test.sh || exit $?;
|
||||||
fi
|
|
||||||
if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]];
|
|
||||||
then sh scripts/aura-test.sh;
|
|
||||||
fi
|
fi
|
||||||
|
# if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]];
|
||||||
|
# ### @TODO re-enable fail after https://github.com/paritytech/parity-import-tests/issues/3
|
||||||
|
# then sh scripts/aura-test.sh; # || exit $?;
|
||||||
|
# fi
|
||||||
}
|
}
|
||||||
js_test () {
|
js_test () {
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
20
scripts/safe_curl.sh
Executable file
20
scripts/safe_curl.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
DATA=$1
|
||||||
|
ADDRESS=$2
|
||||||
|
|
||||||
|
CODE=$(curl -o out.txt -w '%{http_code}' --data $DATA $ADDRESS)
|
||||||
|
cat out.txt && rm out.txt
|
||||||
|
echo "\n"
|
||||||
|
|
||||||
|
if [[ $CODE -eq 200 ]]; then
|
||||||
|
echo 'Pushed to updater service.';
|
||||||
|
elif [[ $CODE -eq 202 ]]; then
|
||||||
|
echo 'Updater service ignored request.';
|
||||||
|
else
|
||||||
|
echo 'Unable to push info to updater service.';
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
@ -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]
|
|
@ -1,10 +1,26 @@
|
|||||||
|
# NOTE This file is used by the auto-updater service.
|
||||||
|
# Make sure to update the service if it's moved or the structure is changed.
|
||||||
[package]
|
[package]
|
||||||
name = "parity-version"
|
name = "parity-version"
|
||||||
# NOTE: this value is used for Parity version string.
|
# NOTE: this value is used for Parity version string.
|
||||||
version = "1.9.2"
|
version = "1.9.3"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
|
[package.metadata]
|
||||||
|
# This versions track. Should be changed to `stable` or `beta` when on respective branches.
|
||||||
|
# Used by auto-updater and for Parity version string.
|
||||||
|
track = "beta"
|
||||||
|
|
||||||
|
# Indicates a critical release in this track (i.e. consensus issue)
|
||||||
|
critical = false
|
||||||
|
|
||||||
|
# Latest supported fork blocks for various networks. Used ONLY by auto-updater.
|
||||||
|
[package.metadata.forks]
|
||||||
|
foundation = 4370000
|
||||||
|
ropsten = 10
|
||||||
|
kovan = 5067000
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ethcore-bytes = { path = "../bytes" }
|
ethcore-bytes = { path = "../bytes" }
|
||||||
rlp = { path = "../rlp" }
|
rlp = { path = "../rlp" }
|
||||||
@ -13,6 +29,7 @@ target_info = "0.1"
|
|||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
vergen = "0.1"
|
vergen = "0.1"
|
||||||
rustc_version = "0.1.0"
|
rustc_version = "0.1.0"
|
||||||
|
toml = "0.4"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
final = []
|
final = []
|
||||||
|
Loading…
Reference in New Issue
Block a user