2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
2016-11-04 06:45:26 +01:00
|
|
|
- test
|
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-10 03:58:12 +01:00
|
|
|
LIBSSL: "libssl1.0.0 (>=1.0.0)"
|
2016-07-28 17:34:32 +02:00
|
|
|
cache:
|
2018-01-17 08:12:02 +01:00
|
|
|
key: "$CI_BUILD_STAGE-$CI_BUILD_REF_NAME"
|
2018-01-15 06:20:04 +01:00
|
|
|
paths:
|
|
|
|
- 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
|
|
|
|
- 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-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
|
|
|
- triggers
|
|
|
|
script:
|
2018-01-17 17:06:54 +01:00
|
|
|
- export LIBSSL="libssl1.1 (>=1.1.0)"
|
2018-02-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
|
|
|
- triggers
|
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +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
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +01:00
|
|
|
- parity.zip
|
2016-11-04 07:59:48 +01:00
|
|
|
name: "aarch64-unknown-linux-gnu_parity"
|
2018-01-10 03:58:12 +01:00
|
|
|
linux-snap:
|
|
|
|
stage: build
|
2018-02-14 12:39:08 +01:00
|
|
|
image: snapcore/snapcraft:stable
|
2018-01-10 03:58:12 +01:00
|
|
|
only:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- triggers
|
|
|
|
script:
|
2018-02-07 15:02:13 +01:00
|
|
|
- scripts/gitlab-build.sh x86_64-unknown-snap-gnu x86_64-unknown-linux-gnu amd64 gcc g++ snap
|
2018-01-10 03:58:12 +01:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-02-14 12:39:08 +01:00
|
|
|
- parity.zip
|
2018-01-10 03:58:12 +01:00
|
|
|
name: "stable-x86_64-unknown-snap-gnu_parity"
|
2016-11-04 07:59:48 +01:00
|
|
|
darwin:
|
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2018-01-10 03:58:12 +01:00
|
|
|
script:
|
2018-02-07 15:02:13 +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-10 03:58:12 +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 08:12:02 +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
|
|
|
|
- stable
|
2016-11-07 15:07:37 +01:00
|
|
|
- triggers
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-02-13 16:20:01 +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-15 06:20:04 +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:
|
2017-03-01 12:57:06 +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-10 05:33:46 +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-10 05:33:46 +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-24 00:05:07 +01:00
|
|
|
stage: test
|
2017-04-05 20:40:12 +02:00
|
|
|
image: parity/rust:gitlab-ci
|
2016-10-31 19:51:29 +01:00
|
|
|
script:
|
2018-01-10 05:33:46 +01:00
|
|
|
- scripts/gitlab-test.sh stable
|
2016-10-31 19:51:29 +01:00
|
|
|
tags:
|
2016-11-25 19:57:58 +01:00
|
|
|
- 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-10 05:33:46 +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-10 05:33:46 +01:00
|
|
|
- scripts/gitlab-test.sh nightly
|
2016-11-07 17:16:34 +01:00
|
|
|
tags:
|
|
|
|
- rust
|
|
|
|
- rust-nightly
|
|
|
|
allow_failure: true
|
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-13 19:31:06 +01:00
|
|
|
- scripts/gitlab-push-release.sh
|
2016-12-20 17:54:09 +01:00
|
|
|
tags:
|
|
|
|
- curl
|