Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly test new CI image #115

Merged
merged 2 commits into from
Dec 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
ascjones marked this conversation as resolved.
Show resolved Hide resolved

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it imply that this variable is removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing really, it's supposed to launch CI pipelines on every branch which is not desirable, we run the usual pipelines only on PR branches, it's covered by the next line. Besides, branches other than PR ones are not getting mirrored to GitLab.

- 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