Skip to content

Commit

Permalink
run malu only
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Aug 28, 2023
1 parent 75d3990 commit b8009bc
Showing 1 changed file with 47 additions and 27 deletions.
74 changes: 47 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ default:
# rusty-cachier's commands are described here: https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description
.rusty-cachier:
before_script:
- 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
- export CARGO_TARGET_DIR=$CI_PROJECT_DIR/cargo_target_dir
- find . \( -path ./cargo_target_dir -o -path ./cargo_home \) -prune -o -type f -exec touch -t 202005260100 {} +
- git restore-mtime
- rusty-cachier --version
- rusty-cachier project touch-changed
# - 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
# - export CARGO_TARGET_DIR=$CI_PROJECT_DIR/cargo_target_dir
# - find . \( -path ./cargo_target_dir -o -path ./cargo_home \) -prune -o -type f -exec touch -t 202005260100 {} +
# - git restore-mtime
# - rusty-cachier --version
# - rusty-cachier project touch-changed
echo tbd

.common-refs:
rules:
Expand Down Expand Up @@ -195,25 +196,44 @@ default:
.zombienet-refs:
extends: .build-refs

include:
# weights jobs
# - gitlab/pipeline/weights.yml
# check jobs
- .gitlab/pipeline/check.yml
# test jobs
- .gitlab/pipeline/test.yml
# build jobs
- .gitlab/pipeline/build.yml
# short-benchmarks jobs
- .gitlab/pipeline/short-benchmarks.yml
# publish jobs
- .gitlab/pipeline/publish.yml
# zombienet jobs
- .gitlab/pipeline/zombienet.yml
# # timestamp handler
- project: parity/infrastructure/ci_cd/shared
ref: v0.2
file: /common/timestamp.yml
# include:
# weights jobs
# - gitlab/pipeline/weights.yml
# check jobs
# - .gitlab/pipeline/check.yml
# test jobs
# - .gitlab/pipeline/test.yml
# build jobs
# - .gitlab/pipeline/build.yml
# short-benchmarks jobs
# - .gitlab/pipeline/short-benchmarks.yml
# publish jobs
# - .gitlab/pipeline/publish.yml
# zombienet jobs
# - .gitlab/pipeline/zombienet.yml
# # timestamp handler
# - project: parity/infrastructure/ci_cd/shared
# ref: v0.2
# file: /common/timestamp.yml

build-malus:
stage: build
extends:
- .docker-env
- .common-refs
# - .run-immediately
- .collect-artifacts
script:
- time cargo build --locked --profile testnet --verbose -p polkadot-test-malus --bin malus --bin polkadot-prepare-worker --bin polkadot-execute-worker
# pack artifacts
- mkdir -p ./artifacts
- mv ./target/testnet/malus ./artifacts/.
- mv ./target/testnet/polkadot-execute-worker ./artifacts/.
- mv ./target/testnet/polkadot-prepare-worker ./artifacts/.
- echo -n "${CI_COMMIT_REF_NAME}" > ./artifacts/VERSION
- echo -n "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" > ./artifacts/EXTRATAG
- echo "polkadot-test-malus = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
- cp -r ./docker/* ./artifacts

# This job cancels the whole pipeline if any of provided jobs fail.
# In a DAG, every jobs chain is executed independently of others. The `fail_fast` principle suggests
Expand Down

0 comments on commit b8009bc

Please sign in to comment.