2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
2016-09-07 20:47:34 +02:00
|
|
|
- build
|
2016-09-07 20:50:05 +02:00
|
|
|
- test
|
2016-07-28 17:34:32 +02:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "3"
|
2016-10-11 15:53:22 +02:00
|
|
|
SIMPLECOV: "true"
|
2016-07-28 17:34:32 +02:00
|
|
|
RUST_BACKTRACE: "1"
|
2016-10-11 15:53:22 +02:00
|
|
|
RUSTFLAGS: "-D warnings"
|
2016-07-28 17:34:32 +02:00
|
|
|
cache:
|
|
|
|
key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
|
|
|
|
untracked: true
|
2016-09-07 18:49:44 +02:00
|
|
|
linux-stable:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust:stable
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
|
|
|
script:
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-21 16:19:34 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/parity --body target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-linux-gnu/checksum --body checksum
|
2016-09-07 18:49:44 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-stable
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-21 13:45:21 +02:00
|
|
|
- target/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "stable-x86_64-unknown-linux-gnu_parity"
|
2016-09-24 00:02:26 +02:00
|
|
|
linux-stable-14.04:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-14.04:latest
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
|
|
|
script:
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-ubuntu_14_04-gnu/parity --body target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-ubuntu_14_04-gnu/checksum --body checksum
|
2016-09-24 00:02:26 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-14.04
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity
|
|
|
|
name: "stable-x86_64-unknown-ubuntu_14_04-gnu_parity"
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-beta:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust:beta
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-beta
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-21 13:45:21 +02:00
|
|
|
- target/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "beta-x86_64-unknown-linux-gnu_parity"
|
2016-09-14 14:00:43 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-nightly:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust:nightly
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-nightly
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-21 13:45:21 +02:00
|
|
|
- target/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "nigthly-x86_64-unknown-linux-gnu_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-centos:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-centos:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
|
|
|
- export CXX="g++"
|
|
|
|
- export CC="gcc"
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-centos-gnu/parity --body target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-unknown-centos-gnu/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-centos
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-21 13:45:21 +02:00
|
|
|
- target/release/parity
|
2016-09-24 00:02:26 +02:00
|
|
|
name: "x86_64-unknown-centos-gnu_parity"
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-armv7:
|
|
|
|
stage: build
|
2016-09-21 15:48:01 +02:00
|
|
|
image: ethcore/rust-armv7:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-09-07 20:47:34 +02:00
|
|
|
- rm -rf .cargo
|
|
|
|
- mkdir -p .cargo
|
|
|
|
- echo "[target.armv7-unknown-linux-gnueabihf]" >> .cargo/config
|
|
|
|
- echo "linker= \"arm-linux-gnueabihf-gcc\"" >> .cargo/config
|
|
|
|
- cat .cargo/config
|
2016-07-28 17:34:32 +02:00
|
|
|
- cargo build --target armv7-unknown-linux-gnueabihf --release --verbose
|
|
|
|
- arm-linux-gnueabihf-strip target/armv7-unknown-linux-gnueabihf/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/armv7-unknown-linux-gnueabihf/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/armv7-unknown-linux-gnueabihf/parity --body target/armv7-unknown-linux-gnueabihf/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/armv7-unknown-linux-gnueabihf/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-24 00:02:26 +02:00
|
|
|
- target/armv7-unknown-linux-gnueabihf/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "armv7_unknown_linux_gnueabihf_parity"
|
2016-09-07 19:26:18 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-arm:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-arm:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-09-14 09:35:09 +02:00
|
|
|
- rm -rf .cargo
|
|
|
|
- mkdir -p .cargo
|
|
|
|
- echo "[target.arm-unknown-linux-gnueabihf]" >> .cargo/config
|
|
|
|
- echo "linker= \"arm-linux-gnueabihf-gcc\"" >> .cargo/config
|
|
|
|
- cat .cargo/config
|
2016-07-28 17:34:32 +02:00
|
|
|
- cargo build --target arm-unknown-linux-gnueabihf --release --verbose
|
|
|
|
- arm-linux-gnueabihf-strip target/arm-unknown-linux-gnueabihf/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/arm-unknown-linux-gnueabihf/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/arm-unknown-linux-gnueabihf/parity --body target/arm-unknown-linux-gnueabihf/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/arm-unknown-linux-gnueabihf/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-24 00:02:26 +02:00
|
|
|
- target/arm-unknown-linux-gnueabihf/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "arm-unknown-linux-gnueabihf_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-armv6:
|
|
|
|
stage: build
|
2016-09-21 15:48:01 +02:00
|
|
|
image: ethcore/rust-armv6:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-09-14 09:35:09 +02:00
|
|
|
- rm -rf .cargo
|
|
|
|
- mkdir -p .cargo
|
|
|
|
- echo "[target.arm-unknown-linux-gnueabi]" >> .cargo/config
|
|
|
|
- echo "linker= \"arm-linux-gnueabi-gcc\"" >> .cargo/config
|
|
|
|
- cat .cargo/config
|
2016-07-28 17:34:32 +02:00
|
|
|
- cargo build --target arm-unknown-linux-gnueabi --release --verbose
|
|
|
|
- arm-linux-gnueabi-strip target/arm-unknown-linux-gnueabi/release/parity
|
2016-10-11 15:53:22 +02:00
|
|
|
- md5sum target/arm-unknown-linux-gnueabi/release/parity >> checksum
|
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/arm-unknown-linux-gnueabi/parity --body target/arm-unknown-linux-gnueabi/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/arm-unknown-linux-gnueabi/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-24 00:02:26 +02:00
|
|
|
- target/arm-unknown-linux-gnueabi/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "arm-unknown-linux-gnueabi_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-aarch64:
|
|
|
|
stage: build
|
2016-09-21 15:48:01 +02:00
|
|
|
image: ethcore/rust-aarch64:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-09-14 09:35:09 +02:00
|
|
|
- rm -rf .cargo
|
|
|
|
- mkdir -p .cargo
|
|
|
|
- echo "[target.aarch64-unknown-linux-gnu]" >> .cargo/config
|
|
|
|
- echo "linker= \"aarch64-linux-gnu-gcc\"" >> .cargo/config
|
|
|
|
- cat .cargo/config
|
2016-07-28 17:34:32 +02:00
|
|
|
- cargo build --target aarch64-unknown-linux-gnu --release --verbose
|
|
|
|
- aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/aarch64-unknown-linux-gnu/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/aarch64-unknown-linux-gnu/parity --body target/aarch64-unknown-linux-gnu/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/aarch64-unknown-linux-gnu/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-24 00:02:26 +02:00
|
|
|
- target/aarch64-unknown-linux-gnu/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "aarch64-unknown-linux-gnu_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
darwin:
|
|
|
|
stage: build
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
|
|
|
- cargo build --release --verbose
|
2016-09-30 16:02:33 +02:00
|
|
|
- md5sum target/release/parity >> checksum
|
2016-10-11 15:53:22 +02:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 15:48:01 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-09-21 16:19:34 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-apple-darwin/parity --body target/release/parity
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/x86_64-apple-darwin/checksum --body checksum
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-09-21 15:48:01 +02:00
|
|
|
- target/release/parity
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "x86_64-apple-darwin_parity"
|
2016-07-28 17:34:32 +02:00
|
|
|
windows:
|
|
|
|
stage: build
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
|
|
|
- set INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs2015\VC\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
|
|
|
|
- set LIB=C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64
|
|
|
|
- set RUST_BACKTRACE=1
|
2016-10-12 08:26:37 +02:00
|
|
|
- set RUSTFLAGS=%RUSTFLAGS% -Zorbit=off
|
2016-07-28 17:34:32 +02:00
|
|
|
- rustup default stable-x86_64-pc-windows-msvc
|
|
|
|
- cargo build --release --verbose
|
2016-10-05 05:53:19 +02:00
|
|
|
- cmd md5sum target\release\parity >> checksum
|
2016-10-12 08:26:37 +02:00
|
|
|
- curl -sL --url "https://github.com/ethcore/win-build/raw/master/SimpleFC.dll" -o nsis\SimpleFC.dll
|
|
|
|
- curl -sL --url "https://github.com/ethcore/win-build/raw/master/vc_redist.x64.exe" -o nsis\vc_redist.x64.exe
|
2016-10-11 19:09:59 +02:00
|
|
|
- cmd signtool sign /f %keyfile% /p %certpass% target\release\parity.exe
|
|
|
|
- cmd C:\NSIS\makensis.exe nsis\installer.nsi
|
|
|
|
- cmd signtool sign /f %keyfile% /p %certpass% nsis\installer.exe
|
2016-09-24 00:02:26 +02:00
|
|
|
- aws configure set aws_access_key_id %s3_key%
|
|
|
|
- aws configure set aws_secret_access_key %s3_secret%
|
2016-10-05 05:53:19 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key %CI_BUILD_REF_NAME%/x86_64-pc-windows-msvc/parity --body target\release\parity.exe
|
|
|
|
- aws s3api put-object --bucket builds-parity --key %CI_BUILD_REF_NAME%/x86_64-pc-windows-msvc/parity --body target\release\parity.pdb
|
2016-09-30 16:02:33 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key %CI_BUILD_REF_NAME%/x86_64-pc-windows-msvc/checksum --body checksum
|
2016-10-11 19:09:59 +02:00
|
|
|
- aws s3api put-object --bucket builds-parity --key %CI_BUILD_REF_NAME%/x86_64-pc-windows-msvc/installer.exe --body nsis\installer.exe
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust-windows
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity.exe
|
|
|
|
- target/release/parity.pdb
|
2016-10-11 19:09:59 +02:00
|
|
|
- nsis/installer.exe
|
2016-09-14 09:35:09 +02:00
|
|
|
name: "x86_64-pc-windows-msvc_parity"
|
2016-08-26 17:07:05 +02:00
|
|
|
test-linux:
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
script:
|
2016-09-28 21:50:37 +02:00
|
|
|
- export RUST_BACKTRACE=1
|
2016-08-26 17:07:05 +02:00
|
|
|
- ./test.sh --verbose
|
2016-09-07 18:49:44 +02:00
|
|
|
tags:
|
2016-09-08 16:58:18 +02:00
|
|
|
- rust-test
|
2016-08-26 17:07:05 +02:00
|
|
|
dependencies:
|
|
|
|
- linux-stable
|