Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
adding unleash to ci (#5020)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gnunicorn authored Feb 25, 2020
1 parent 41bb219 commit 993e5f6
Show file tree
Hide file tree
Showing 13 changed files with 147 additions and 190 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 993e5f6

Please sign in to comment.