Skip to content

Commit

Permalink
Nightly test new CI image (use-ink#115)
Browse files Browse the repository at this point in the history
* CI: put image name into a var so it can be changed by a upstream pipeline trigger

* CI: explanation for the ancestors
  • Loading branch information
TriplEight authored Dec 2, 2020
1 parent 24c2854 commit 18ce1e1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ variables:
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
RUST_LIB_BACKTRACE: "0"

# Necessary for building binaryen-sys, which is part of the binaryen dependency.
# Should be reverted once the `cargo-contract` ci image provides a clang version
# for which building `binaryen-sys` works (paritytech/scripts/#237).
CXX: "/usr/bin/clang++-8"
# this var is changed to "-:staging" when the CI image gets rebuilt
# read more https://github.com/paritytech/cargo-contract/pull/115
CI_IMAGE: "paritytech/contracts-ci-linux:production"

workflow:
rules:
Expand All @@ -36,7 +34,7 @@ workflow:
- artifacts/

.docker-env: &docker-env
image: paritytech/contracts-ci-linux:latest
image: "${CI_IMAGE}"
before_script:
- cargo -vV
- rustc -vV
Expand All @@ -52,7 +50,6 @@ workflow:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
dependencies: []
Expand Down

0 comments on commit 18ce1e1

Please sign in to comment.