Skip to content

Commit

Permalink
paritytech/ci_cd#860: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Plakida committed Aug 29, 2023
1 parent e3f3b6f commit 5830333
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@ default:
- !reference [.rust-info-script, script]
- !reference [.rusty-cachier, before_script]
- !reference [.pipeline-stopper-vars, script]
after_script:
- !reference [.rusty-cachier, after_script]
cache:
key: cargo-$CI_COMMIT_REF_SLUG-$CI_JOB_NAME_SLUG
key: Cargo.lock
fallback_keys:
- cargo-$CI_DEFAULT_BRANCH-$CI_JOB_NAME_SLUG
paths:
- cargo_home
- cargo_target_dir
- dependencies.tar
policy: pull-push
tags:
- linux-docker-vm-c2
Expand All @@ -120,6 +121,7 @@ default:
# rusty-cachier's commands are described here: https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description
.rusty-cachier:
before_script:
- tar xf dependencies.tar
- curl -s https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client/-/raw/release/util/install.sh | bash
- mkdir -p cargo_home cargo_target_dir
- export CARGO_HOME=$CI_PROJECT_DIR/cargo_home
Expand All @@ -128,6 +130,9 @@ default:
- git restore-mtime
- rusty-cachier --version
- rusty-cachier project touch-changed
after_script:
- tar cfW dependencies.tar ./cargo_home ./cargo_target_dir


.common-refs:
rules:
Expand Down

0 comments on commit 5830333

Please sign in to comment.