Skip to content
Snippets Groups Projects
Commit 546199ed authored by ddorgan's avatar ddorgan Committed by Wei Tang
Browse files

Initial .gitlab-ci.yml build file (#5)

* Initial .gitlab-ci.yml build file

* Update artifact binary name

* Add back --release flag

* Make sure rust toolchain is stable by default

* Remove debug info

* Rename test job names to address grumbles

* Remove artifact collection
parent 747b8112
Branches
No related merge requests found
Pipeline #24470 passed with stages
in 8 minutes and 4 seconds
stages:
- test
- build
image: parity/rust:nightly
variables:
CI_SERVER_NAME: "GitLab CI"
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
RUST_TOOLCHAIN: "stable"
cache:
key: "${CI_JOB_NAME}"
paths:
- ./target/
- ./.cargo/
before_script:
- ./scripts/init.sh
- export PATH="${CI_PROJECT_DIR}/cargo/bin/:$PATH"
- ./scripts/build.sh
#### stage: test
test-rust-stable:
stage: test
script:
- time cargo test --all --release --locked
only:
- triggers
- tags
- master
- schedules
- web
tags:
- rust-stable
#### stage: build
build-linux:
stage: build
script:
- cargo build --release
tags:
- rust-stable
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment