Remove debian/.deb and centos/.rpm packaging scripts (#8887)
* scripts: remove rpm packages * scripts: remove deb packages * scripts: remove unused zip archives * scripts: remove unused ssl references * scripts: remove debian and centos pipelines * scripts: rename ubuntu to generic linux * scripts: restore archives used in gitlab artifacts * scripts: init submodules for full test suite * scripts: do not publish master builds, only nightly, stable, beta
This commit is contained in:
parent
75e779029f
commit
c9cee8fd52
@ -7,13 +7,12 @@ variables:
|
|||||||
RUSTFLAGS: ""
|
RUSTFLAGS: ""
|
||||||
CARGOFLAGS: ""
|
CARGOFLAGS: ""
|
||||||
CI_SERVER_NAME: "GitLab CI"
|
CI_SERVER_NAME: "GitLab CI"
|
||||||
LIBSSL: "libssl1.0.0 (>=1.0.0)"
|
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_BUILD_STAGE-$CI_BUILD_REF_NAME"
|
key: "$CI_BUILD_STAGE-$CI_BUILD_REF_NAME"
|
||||||
paths:
|
paths:
|
||||||
- target/
|
- target/
|
||||||
untracked: true
|
untracked: true
|
||||||
linux-ubuntu:
|
linux-amd64:
|
||||||
stage: build
|
stage: build
|
||||||
image: parity/rust:gitlab-ci
|
image: parity/rust:gitlab-ci
|
||||||
only:
|
only:
|
||||||
@ -24,46 +23,13 @@ linux-ubuntu:
|
|||||||
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 6. binary identifier
|
# 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++ ubuntu
|
- scripts/gitlab-build.sh x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu amd64 gcc g++ linux
|
||||||
tags:
|
tags:
|
||||||
- rust-stable
|
- rust-stable
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- parity.zip
|
- parity.zip
|
||||||
name: "stable-x86_64-unknown-linux-gnu_parity"
|
name: "stable-x86_64-unknown-linux-gnu_parity"
|
||||||
linux-debian:
|
|
||||||
stage: build
|
|
||||||
image: parity/rust-debian:gitlab-ci
|
|
||||||
only:
|
|
||||||
- beta
|
|
||||||
- tags
|
|
||||||
- stable
|
|
||||||
- triggers
|
|
||||||
script:
|
|
||||||
- export LIBSSL="libssl1.1 (>=1.1.0)"
|
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-debian-gnu x86_64-unknown-linux-gnu amd64 gcc g++ debian
|
|
||||||
tags:
|
|
||||||
- rust-debian
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- parity.zip
|
|
||||||
name: "stable-x86_64-unknown-debian-gnu_parity"
|
|
||||||
linux-centos:
|
|
||||||
stage: build
|
|
||||||
image: parity/rust-centos:gitlab-ci
|
|
||||||
only:
|
|
||||||
- beta
|
|
||||||
- tags
|
|
||||||
- stable
|
|
||||||
- triggers
|
|
||||||
script:
|
|
||||||
- scripts/gitlab-build.sh x86_64-unknown-centos-gnu x86_64-unknown-linux-gnu x86_64 gcc g++ centos
|
|
||||||
tags:
|
|
||||||
- rust-centos
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- parity.zip
|
|
||||||
name: "x86_64-unknown-centos-gnu_parity"
|
|
||||||
linux-i686:
|
linux-i686:
|
||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-i686:gitlab-ci
|
image: parity/rust-i686:gitlab-ci
|
||||||
@ -73,7 +39,7 @@ linux-i686:
|
|||||||
- stable
|
- stable
|
||||||
- triggers
|
- triggers
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab-build.sh i686-unknown-linux-gnu i686-unknown-linux-gnu i386 gcc g++ ubuntu
|
- scripts/gitlab-build.sh i686-unknown-linux-gnu i686-unknown-linux-gnu i386 gcc g++ linux
|
||||||
tags:
|
tags:
|
||||||
- rust-i686
|
- rust-i686
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -90,7 +56,7 @@ linux-armv7:
|
|||||||
- stable
|
- 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++ ubuntu
|
- scripts/gitlab-build.sh armv7-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++ linux
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -98,7 +64,7 @@ linux-armv7:
|
|||||||
- parity.zip
|
- parity.zip
|
||||||
name: "armv7_unknown_linux_gnueabihf_parity"
|
name: "armv7_unknown_linux_gnueabihf_parity"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
linux-arm:
|
linux-armhf:
|
||||||
stage: build
|
stage: build
|
||||||
image: parity/rust-arm:gitlab-ci
|
image: parity/rust-arm:gitlab-ci
|
||||||
only:
|
only:
|
||||||
@ -107,7 +73,7 @@ linux-arm:
|
|||||||
- stable
|
- 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++ ubuntu
|
- scripts/gitlab-build.sh arm-unknown-linux-gnueabihf arm-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++ linux
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -124,7 +90,7 @@ linux-aarch64:
|
|||||||
- stable
|
- 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++ ubuntu
|
- scripts/gitlab-build.sh aarch64-unknown-linux-gnu aarch64-unknown-linux-gnu arm64 aarch64-linux-gnu-gcc aarch64-linux-gnu-g++ linux
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e # fail on any error
|
|
||||||
set -u # treat unset variables as error
|
|
||||||
rm -rf deb
|
|
||||||
#create DEBIAN files
|
|
||||||
mkdir -p deb/usr/bin/
|
|
||||||
mkdir -p deb/DEBIAN
|
|
||||||
#create copyright, docs, compat
|
|
||||||
cp LICENSE deb/DEBIAN/copyright
|
|
||||||
echo "https://github.com/paritytech/parity/wiki" >> deb/DEBIAN/docs
|
|
||||||
echo "8" >> deb/DEBIAN/compat
|
|
||||||
#create control file
|
|
||||||
control=deb/DEBIAN/control
|
|
||||||
echo "Package: parity" >> $control
|
|
||||||
version=`grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n"`
|
|
||||||
echo "Version: $version" >> $control
|
|
||||||
echo "Source: parity" >> $control
|
|
||||||
echo "Section: science" >> $control
|
|
||||||
echo "Priority: extra" >> $control
|
|
||||||
echo "Maintainer: Parity Technologies <devops@parity.io>" >> $control
|
|
||||||
echo "Build-Depends: debhelper (>=9)" >> $control
|
|
||||||
echo "Standards-Version: 3.9.5" >> $control
|
|
||||||
echo "Homepage: https://parity.io" >> $control
|
|
||||||
echo "Vcs-Git: git://github.com/paritytech/parity.git" >> $control
|
|
||||||
echo "Vcs-Browser: https://github.com/paritytech/parity" >> $control
|
|
||||||
echo "Architecture: $1" >> $control
|
|
||||||
echo "Depends: libssl1.0.0 (>=1.0.0)" >> $control
|
|
||||||
echo "Description: Ethereum network client by Parity Technologies" >> $control
|
|
||||||
size=`du deb/|awk 'END {print $1}'`
|
|
||||||
echo "Installed-Size: $size" >> $control
|
|
||||||
#build .deb package
|
|
||||||
|
|
||||||
exit
|
|
@ -17,7 +17,6 @@ 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
|
||||||
echo "Libssl version: " $LIBSSL
|
|
||||||
echo "Parity version: " $VER
|
echo "Parity version: " $VER
|
||||||
echo "Branch: " $CI_BUILD_REF_NAME
|
echo "Branch: " $CI_BUILD_REF_NAME
|
||||||
echo "--------------------"
|
echo "--------------------"
|
||||||
@ -87,56 +86,6 @@ calculate_checksums () {
|
|||||||
$SHA256_BIN target/$PLATFORM/release/ethkey$S3WIN > ethkey$S3WIN.sha256
|
$SHA256_BIN target/$PLATFORM/release/ethkey$S3WIN > ethkey$S3WIN.sha256
|
||||||
$SHA256_BIN target/$PLATFORM/release/whisper$S3WIN > whisper$S3WIN.sha256
|
$SHA256_BIN target/$PLATFORM/release/whisper$S3WIN > whisper$S3WIN.sha256
|
||||||
}
|
}
|
||||||
make_deb () {
|
|
||||||
rm -rf deb
|
|
||||||
echo "create DEBIAN files"
|
|
||||||
mkdir -p deb/usr/bin/
|
|
||||||
mkdir -p deb/DEBIAN
|
|
||||||
echo "create copyright, docs, compat"
|
|
||||||
cp LICENSE deb/DEBIAN/copyright
|
|
||||||
echo "https://github.com/paritytech/parity/wiki" >> deb/DEBIAN/docs
|
|
||||||
echo "8" >> deb/DEBIAN/compat
|
|
||||||
echo "create control file"
|
|
||||||
control=deb/DEBIAN/control
|
|
||||||
echo "Package: parity" >> $control
|
|
||||||
echo "Version: $VER" >> $control
|
|
||||||
echo "Source: parity" >> $control
|
|
||||||
echo "Section: science" >> $control
|
|
||||||
echo "Priority: extra" >> $control
|
|
||||||
echo "Maintainer: Parity Technologies <devops@parity.io>" >> $control
|
|
||||||
echo "Build-Depends: debhelper (>=9)" >> $control
|
|
||||||
echo "Standards-Version: 3.9.5" >> $control
|
|
||||||
echo "Homepage: https://parity.io" >> $control
|
|
||||||
echo "Vcs-Git: git://github.com/paritytech/parity.git" >> $control
|
|
||||||
echo "Vcs-Browser: https://github.com/paritytech/parity" >> $control
|
|
||||||
echo "Architecture: $ARC" >> $control
|
|
||||||
echo "Depends: $LIBSSL" >> $control
|
|
||||||
echo "Description: Ethereum network client by Parity Technologies" >> $control
|
|
||||||
size=`du deb/|awk 'END {print $1}'`
|
|
||||||
echo "Installed-Size: $size" >> $control
|
|
||||||
echo "build .deb package"
|
|
||||||
cp target/$PLATFORM/release/parity deb/usr/bin/parity
|
|
||||||
cp target/$PLATFORM/release/parity-evm deb/usr/bin/parity-evm
|
|
||||||
cp target/$PLATFORM/release/ethstore deb/usr/bin/ethstore
|
|
||||||
cp target/$PLATFORM/release/ethkey deb/usr/bin/ethkey
|
|
||||||
cp target/$PLATFORM/release/whisper deb/usr/bin/whisper
|
|
||||||
dpkg-deb -b deb "parity_"$VER"_"$IDENT"_"$ARC".deb"
|
|
||||||
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC".deb" > "parity_"$VER"_"$IDENT"_"$ARC".deb.sha256"
|
|
||||||
}
|
|
||||||
make_rpm () {
|
|
||||||
rm -rf /install
|
|
||||||
mkdir -p /install/usr/bin
|
|
||||||
cp target/$PLATFORM/release/parity /install/usr/bin
|
|
||||||
cp target/$PLATFORM/release/parity-evm /install/usr/bin/parity-evm
|
|
||||||
cp target/$PLATFORM/release/ethstore /install/usr/bin/ethstore
|
|
||||||
cp target/$PLATFORM/release/ethkey /install/usr/bin/ethkey
|
|
||||||
cp target/$PLATFORM/release/whisper /install/usr/bin/whisper
|
|
||||||
|
|
||||||
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/
|
|
||||||
cp "parity-"$VER"-1."$ARC".rpm" "parity_"$VER"_"$IDENT"_"$ARC".rpm"
|
|
||||||
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC".rpm" > "parity_"$VER"_"$IDENT"_"$ARC".rpm.sha256"
|
|
||||||
}
|
|
||||||
sign_exe () {
|
sign_exe () {
|
||||||
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity.exe"
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity.exe"
|
||||||
}
|
}
|
||||||
@ -144,7 +93,7 @@ push_binaries () {
|
|||||||
echo "Push binaries to AWS S3"
|
echo "Push binaries to AWS S3"
|
||||||
aws configure set aws_access_key_id $s3_key
|
aws configure set aws_access_key_id $s3_key
|
||||||
aws configure set aws_secret_access_key $s3_secret
|
aws configure set aws_secret_access_key $s3_secret
|
||||||
if [[ "$CI_BUILD_REF_NAME" = "master" || "$CI_BUILD_REF_NAME" = "beta" || "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "nightly" ]];
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "nightly" ]];
|
||||||
then
|
then
|
||||||
export S3_BUCKET=builds-parity-published;
|
export S3_BUCKET=builds-parity-published;
|
||||||
else
|
else
|
||||||
@ -162,6 +111,7 @@ push_binaries () {
|
|||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN --body target/$PLATFORM/release/whisper$S3WIN
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN --body target/$PLATFORM/release/whisper$S3WIN
|
||||||
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN.sha256 --body whisper$S3WIN.sha256
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN.sha256 --body whisper$S3WIN.sha256
|
||||||
}
|
}
|
||||||
|
|
||||||
make_archive () {
|
make_archive () {
|
||||||
echo "add artifacts to archive"
|
echo "add artifacts to archive"
|
||||||
rm -rf parity.zip
|
rm -rf parity.zip
|
||||||
@ -183,78 +133,46 @@ case $BUILD_PLATFORM in
|
|||||||
#set strip bin
|
#set strip bin
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
#package extention
|
#package extention
|
||||||
EXT="deb"
|
|
||||||
build
|
build
|
||||||
strip_binaries
|
strip_binaries
|
||||||
calculate_checksums
|
calculate_checksums
|
||||||
make_deb
|
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
updater_push_release
|
updater_push_release
|
||||||
;;
|
;;
|
||||||
x86_64-unknown-debian-gnu)
|
|
||||||
STRIP_BIN="strip"
|
|
||||||
EXT="deb"
|
|
||||||
LIBSSL="libssl1.1 (>=1.1.0)"
|
|
||||||
echo "Use libssl1.1 (>=1.1.0) for Debian builds"
|
|
||||||
build
|
|
||||||
strip_binaries
|
|
||||||
calculate_checksums
|
|
||||||
make_deb
|
|
||||||
make_archive
|
|
||||||
push_binaries
|
|
||||||
;;
|
|
||||||
x86_64-unknown-centos-gnu)
|
|
||||||
STRIP_BIN="strip"
|
|
||||||
EXT="rpm"
|
|
||||||
build
|
|
||||||
strip_binaries
|
|
||||||
calculate_checksums
|
|
||||||
make_rpm
|
|
||||||
make_archive
|
|
||||||
push_binaries
|
|
||||||
;;
|
|
||||||
i686-unknown-linux-gnu)
|
i686-unknown-linux-gnu)
|
||||||
STRIP_BIN="strip"
|
STRIP_BIN="strip"
|
||||||
EXT="deb"
|
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_binaries
|
strip_binaries
|
||||||
calculate_checksums
|
calculate_checksums
|
||||||
make_deb
|
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
;;
|
;;
|
||||||
armv7-unknown-linux-gnueabihf)
|
armv7-unknown-linux-gnueabihf)
|
||||||
STRIP_BIN="arm-linux-gnueabihf-strip"
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
||||||
EXT="deb"
|
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_binaries
|
strip_binaries
|
||||||
calculate_checksums
|
calculate_checksums
|
||||||
make_deb
|
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
;;
|
;;
|
||||||
arm-unknown-linux-gnueabihf)
|
arm-unknown-linux-gnueabihf)
|
||||||
STRIP_BIN="arm-linux-gnueabihf-strip"
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
||||||
EXT="deb"
|
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_binaries
|
strip_binaries
|
||||||
calculate_checksums
|
calculate_checksums
|
||||||
make_deb
|
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
;;
|
;;
|
||||||
aarch64-unknown-linux-gnu)
|
aarch64-unknown-linux-gnu)
|
||||||
STRIP_BIN="aarch64-linux-gnu-strip"
|
STRIP_BIN="aarch64-linux-gnu-strip"
|
||||||
EXT="deb"
|
|
||||||
set_env
|
set_env
|
||||||
build
|
build
|
||||||
strip_binaries
|
strip_binaries
|
||||||
calculate_checksums
|
calculate_checksums
|
||||||
make_deb
|
|
||||||
make_archive
|
make_archive
|
||||||
push_binaries
|
push_binaries
|
||||||
;;
|
;;
|
||||||
|
1
test.sh
1
test.sh
@ -56,4 +56,5 @@ cd parity-clib-example && \
|
|||||||
|
|
||||||
# Running tests
|
# Running tests
|
||||||
echo "________Running Parity Full Test Suite________"
|
echo "________Running Parity Full Test Suite________"
|
||||||
|
git submodule update --init --recursive
|
||||||
cargo test -j 8 $OPTIONS --features "$FEATURES" --all $1
|
cargo test -j 8 $OPTIONS --features "$FEATURES" --all $1
|
||||||
|
Loading…
Reference in New Issue
Block a user