Update gitlab-ci

test deb build
This commit is contained in:
Denis S. Soldatov aka General-Beck 2016-10-25 09:55:39 +07:00 committed by GitHub
parent 3327dc9aef
commit 91903ac9e7

View File

@ -20,10 +20,17 @@ linux-stable:
- cargo build --release --verbose
- strip target/release/parity
- md5sum target/release/parity >> parity.md5
- scripts/deb-build.sh amd64
- cp target/release/parity deb/usr/bin/parity
- ./deb-build.sh amd64
- version=`grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n"`
- md5sum parity_$version_amd64.deb >> parity_$version_amd64.deb.md5
- aws configure set aws_access_key_id $s3_key
- aws configure set aws_secret_access_key $s3_secret
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/parity --body target/release/parity
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/parity.md5 --body parity.md5
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/parity_$version_amd64.deb --body parity_$version_amd64.deb
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/parity_$version_amd64.deb.md5 --body parity_$version_amd64.deb.md5
tags:
- rust
- rust-stable