2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
2016-11-04 06:45:26 +01:00
|
|
|
- test
|
2016-11-04 09:59:17 +01:00
|
|
|
- js-build
|
2017-03-06 22:56:19 +01:00
|
|
|
- push-release
|
2017-03-08 23:34:00 +01:00
|
|
|
- build
|
2016-07-28 17:34:32 +02:00
|
|
|
variables:
|
|
|
|
RUST_BACKTRACE: "1"
|
2016-10-31 09:47:47 +01:00
|
|
|
RUSTFLAGS: ""
|
2016-12-01 01:15:35 +01:00
|
|
|
CARGOFLAGS: ""
|
2017-06-13 00:37:03 +02:00
|
|
|
CI_SERVER_NAME: "GitLab CI"
|
2018-01-22 23:50:52 +01:00
|
|
|
LIBSSL: "libssl1.0.0 (>=1.0.0)"
|
2016-07-28 17:34:32 +02:00
|
|
|
cache:
|
2018-01-17 21:36:13 +01:00
|
|
|
key: "$CI_BUILD_STAGE-$CI_BUILD_REF_NAME"
|
2018-01-22 23:50:52 +01:00
|
|
|
paths:
|
2018-02-19 15:36:12 +01:00
|
|
|
- target/
|
2016-07-28 17:34:32 +02:00
|
|
|
untracked: true
|
2016-11-04 07:59:48 +01:00
|
|
|
linux-stable:
|
|
|
|
stage: build
|
2017-04-05 20:35:53 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2017-04-05 20:35:53 +02:00
|
|
|
- rustup default stable
|
2018-02-14 16:59:16 +01:00
|
|
|
# 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
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "stable-x86_64-unknown-linux-gnu_parity"
|
2017-01-19 20:32:52 +01:00
|
|
|
linux-stable-debian:
|
|
|
|
stage: build
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust-debian:gitlab-ci
|
2017-01-19 20:32:52 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2017-01-19 20:32:52 +01:00
|
|
|
- triggers
|
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- export LIBSSL="libssl1.1 (>=1.1.0)"
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh x86_64-unknown-debian-gnu x86_64-unknown-linux-gnu amd64 gcc g++ debian
|
2017-01-19 20:32:52 +01:00
|
|
|
tags:
|
|
|
|
- rust-debian
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2017-01-19 20:32:52 +01:00
|
|
|
name: "stable-x86_64-unknown-debian-gnu_parity"
|
2016-11-04 07:59:48 +01:00
|
|
|
linux-centos:
|
|
|
|
stage: build
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust-centos:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh x86_64-unknown-centos-gnu x86_64-unknown-linux-gnu x86_64 gcc g++ centos
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-centos
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "x86_64-unknown-centos-gnu_parity"
|
2016-12-09 00:58:53 +01:00
|
|
|
linux-i686:
|
|
|
|
stage: build
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust-i686:gitlab-ci
|
2016-11-07 15:07:37 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh i686-unknown-linux-gnu i686-unknown-linux-gnu i386 gcc g++ ubuntu
|
2016-11-07 15:07:37 +01:00
|
|
|
tags:
|
|
|
|
- rust-i686
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-07 15:07:37 +01:00
|
|
|
name: "i686-unknown-linux-gnu"
|
2016-11-04 07:59:48 +01:00
|
|
|
linux-armv7:
|
|
|
|
stage: build
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust-armv7:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh armv7-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++ ubuntu
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "armv7_unknown_linux_gnueabihf_parity"
|
|
|
|
linux-arm:
|
|
|
|
stage: build
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust-arm:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh arm-unknown-linux-gnueabihf arm-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++ ubuntu
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "arm-unknown-linux-gnueabihf_parity"
|
|
|
|
linux-aarch64:
|
|
|
|
stage: build
|
2017-05-03 02:12:45 +02:00
|
|
|
image: parity/rust-arm64:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh aarch64-unknown-linux-gnu aarch64-unknown-linux-gnu arm64 aarch64-linux-gnu-gcc aarch64-linux-gnu-g++ ubuntu
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-arm
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "aarch64-unknown-linux-gnu_parity"
|
2018-01-22 23:50:52 +01:00
|
|
|
linux-snap:
|
|
|
|
stage: build
|
2018-03-14 13:50:58 +01:00
|
|
|
image: parity/snapcraft:gitlab-ci
|
2018-01-22 23:50:52 +01:00
|
|
|
only:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- triggers
|
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh x86_64-unknown-snap-gnu x86_64-unknown-linux-gnu amd64 gcc g++ snap
|
2018-01-22 23:50:52 +01:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-02-14 16:59:16 +01:00
|
|
|
- parity.zip
|
2018-01-22 23:50:52 +01:00
|
|
|
name: "stable-x86_64-unknown-snap-gnu_parity"
|
2016-11-04 07:59:48 +01:00
|
|
|
allow_failure: true
|
|
|
|
darwin:
|
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2018-01-22 23:50:52 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-build.sh x86_64-apple-darwin x86_64-apple-darwin macos gcc g++ macos
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "x86_64-apple-darwin_parity"
|
|
|
|
windows:
|
2016-11-07 15:07:37 +01:00
|
|
|
cache:
|
2018-01-17 21:36:13 +01:00
|
|
|
key: "%CI_BUILD_STAGE%-%CI_BUILD_REF_NAME%"
|
2016-11-07 15:07:37 +01:00
|
|
|
untracked: true
|
2016-11-04 07:59:48 +01:00
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
2018-02-14 16:59:16 +01:00
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- sh scripts/gitlab-build.sh x86_64-pc-windows-msvc x86_64-pc-windows-msvc installer "" "" windows
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
|
|
|
- rust-windows
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-01-22 23:50:52 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "x86_64-pc-windows-msvc_parity"
|
2017-01-25 20:01:28 +01:00
|
|
|
docker-build:
|
2017-01-25 19:48:36 +01:00
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
- tags
|
2017-02-24 20:54:41 +01:00
|
|
|
- triggers
|
2017-01-25 19:48:36 +01:00
|
|
|
before_script:
|
|
|
|
- docker info
|
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- if [ "$CI_BUILD_REF_NAME" == "beta-release" ]; then DOCKER_TAG="latest"; else DOCKER_TAG=$CI_BUILD_REF_NAME; fi
|
2017-07-17 11:06:32 +02:00
|
|
|
- echo "Tag:" $DOCKER_TAG
|
2017-05-03 16:31:56 +02:00
|
|
|
- docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/docker-build.sh $DOCKER_TAG
|
2017-05-03 16:31:56 +02:00
|
|
|
- docker logout
|
2017-01-25 19:48:36 +01:00
|
|
|
tags:
|
|
|
|
- docker
|
2017-03-29 15:17:27 +02:00
|
|
|
test-coverage:
|
2017-03-10 10:12:16 +01:00
|
|
|
stage: test
|
|
|
|
only:
|
2017-03-15 23:24:23 +01:00
|
|
|
- master
|
2017-03-10 10:12:16 +01:00
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/gitlab-test.sh test-coverage
|
2017-03-10 10:12:16 +01:00
|
|
|
tags:
|
|
|
|
- kcov
|
2017-03-19 17:10:18 +01:00
|
|
|
allow_failure: true
|
2016-11-04 08:29:16 +01:00
|
|
|
test-rust-stable:
|
2016-11-25 19:57:58 +01:00
|
|
|
stage: test
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2018-01-08 19:23:56 +01:00
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/gitlab-test.sh stable
|
2016-11-25 19:57:58 +01:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
2016-11-07 17:16:34 +01:00
|
|
|
test-rust-beta:
|
2016-11-24 00:05:07 +01:00
|
|
|
stage: test
|
2016-11-07 17:16:34 +01:00
|
|
|
only:
|
|
|
|
- triggers
|
2017-06-05 14:44:37 +02:00
|
|
|
- master
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-11-07 17:16:34 +01:00
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/gitlab-test.sh beta
|
2016-11-07 17:16:34 +01:00
|
|
|
tags:
|
|
|
|
- rust-beta
|
|
|
|
allow_failure: true
|
|
|
|
test-rust-nightly:
|
2016-11-24 00:05:07 +01:00
|
|
|
stage: test
|
2016-11-07 17:16:34 +01:00
|
|
|
only:
|
|
|
|
- triggers
|
2017-06-05 14:44:37 +02:00
|
|
|
- master
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-11-07 17:16:34 +01:00
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/gitlab-test.sh nightly
|
2016-11-07 17:16:34 +01:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-nightly
|
|
|
|
allow_failure: true
|
2018-01-22 23:50:52 +01:00
|
|
|
js-test:
|
|
|
|
stage: test
|
|
|
|
image: parity/rust:gitlab-ci
|
|
|
|
script:
|
|
|
|
- scripts/gitlab-test.sh js-test
|
|
|
|
tags:
|
|
|
|
- rust-stable
|
2016-11-04 09:46:27 +01:00
|
|
|
js-release:
|
2016-11-24 00:05:07 +01:00
|
|
|
stage: js-build
|
2016-11-04 09:59:17 +01:00
|
|
|
only:
|
|
|
|
- master
|
2018-01-25 00:48:19 +01:00
|
|
|
- stable
|
2018-02-01 15:31:13 +01:00
|
|
|
- beta
|
2017-01-31 17:39:11 +01:00
|
|
|
- tags
|
2017-06-05 14:44:37 +02:00
|
|
|
- triggers
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-01-22 23:50:52 +01:00
|
|
|
- scripts/gitlab-test.sh js-release
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
2016-11-04 09:46:27 +01:00
|
|
|
- javascript
|
2016-12-20 17:54:09 +01:00
|
|
|
push-release:
|
|
|
|
stage: push-release
|
|
|
|
only:
|
|
|
|
- tags
|
2017-06-05 14:44:37 +02:00
|
|
|
- triggers
|
2017-05-02 19:45:19 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-12-20 17:54:09 +01:00
|
|
|
script:
|
2018-02-14 16:59:16 +01:00
|
|
|
- scripts/gitlab-push-release.sh
|
2016-12-20 17:54:09 +01:00
|
|
|
tags:
|
|
|
|
- curl
|