adding unleash to ci (#5020)

* adding unleash to ci

* fixing formatting

* with a dot please

* alpha.3 now

* do not publish testing helpers

* remove old test-helpers cruft

* fix cargo.lock

* with alpha 4

* do not publish runtime-interface-test either

* disable more test crates from publishing

* switch to alpha.5

* replace tempdir with tempfile

* update lru

* switch to bytes 0.5

* release script fixes

* switch on and to latest alpha

* BUT THE SPACES
This commit is contained in:
Benjamin Kampmann
2020-02-25 15:48:29 +01:00
committed by GitHub
parent ad90ab7ec9
commit 6abed97394
13 changed files with 147 additions and 190 deletions
+21
View File
@@ -37,6 +37,9 @@ variables:
CI_SERVER_NAME: "GitLab CI"
DOCKER_OS: "debian:stretch"
ARCH: "x86_64"
# FIXME set to release
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.6"
CARGO_UNLEASH_PKG_DEF: "--skip node node-* subkey chain-spec-builder"
.collect-artifacts: &collect-artifacts
@@ -174,6 +177,9 @@ test-dependency-rules:
- $DEPLOY_TAG
script:
- .maintain/ensure-deps.sh
# FIXME set to release
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
test-frame-staking:
stage: test
@@ -550,6 +556,21 @@ publish-draft-release:
interruptible: true
allow_failure: true
publish-to-crates-io:
stage: publish
<<: *docker-env
dependencies:
- build-linux-substrate
- test-dependency-rules
only:
- tags
- /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash em-dragons --no-check ${CARGO_UNLEASH_PKG_DEF}
interruptible: true
allow_failure: true
.deploy-template: &deploy
stage: kubernetes
when: manual