2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
|
|
|
- build
|
2016-08-26 17:07:05 +02:00
|
|
|
- test
|
2016-07-28 17:34:32 +02:00
|
|
|
- deploy
|
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "3"
|
|
|
|
SIMPLECOV: "true"
|
|
|
|
RUST_BACKTRACE: "1"
|
|
|
|
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:
|
|
|
|
- export
|
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-stable
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_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:
|
2016-08-26 21:58:32 +02:00
|
|
|
- export
|
2016-07-28 17:34:32 +02:00
|
|
|
- cargo build --release --verbose
|
|
|
|
- strip target/release/parity
|
2016-08-26 17:07:05 +02:00
|
|
|
- cp target/release/parity parity
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-beta
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
|
|
|
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:
|
|
|
|
- target/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_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
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-centos
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
|
|
|
linux-armv7:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-arm:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-08-26 21:58:32 +02:00
|
|
|
- export
|
2016-09-07 18:49:44 +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
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/armv7-unknown-linux-gnueabihf/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_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:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-08-26 21:58:32 +02:00
|
|
|
- export
|
2016-09-07 18:49:44 +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
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/arm-unknown-linux-gnueabihf/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-armv6:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-arm:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-08-26 21:58:32 +02:00
|
|
|
- export
|
2016-09-07 18:49:44 +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
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/arm-unknown-linux-gnueabi/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|
2016-07-28 17:34:32 +02:00
|
|
|
linux-aarch64:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-arm:latest
|
2016-08-18 18:41:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-07-28 17:34:32 +02:00
|
|
|
script:
|
2016-08-26 21:58:32 +02:00
|
|
|
- export
|
2016-09-07 18:49:44 +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
|
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/aarch64-unknown-linux-gnu/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_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
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
|
|
|
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
|
|
|
|
- rustup default stable-x86_64-pc-windows-msvc
|
|
|
|
- cargo build --release --verbose
|
|
|
|
tags:
|
|
|
|
- rust-windows
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/release/parity.exe
|
|
|
|
- target/release/parity.pdb
|
|
|
|
name: "${CI_BUILD_NAME}_parity"
|
2016-08-26 17:07:05 +02:00
|
|
|
test-linux:
|
|
|
|
stage: test
|
2016-09-07 18:49:44 +02:00
|
|
|
image: ethcore/rust:stable
|
2016-08-26 17:07:05 +02:00
|
|
|
before_script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
script:
|
|
|
|
- ./test.sh --verbose
|
2016-09-07 18:49:44 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-stable
|
2016-08-26 17:07:05 +02:00
|
|
|
dependencies:
|
|
|
|
- linux-stable
|
2016-09-07 18:49:44 +02:00
|
|
|
deploy-binaries:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- ./deploy.sh
|