Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
ci: Use FEATURES env var consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Apr 12, 2021
1 parent 27d9dae commit e733648
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,27 @@ nightly-test:
variables:
FEATURES: "unstable"
script:
- cargo +nightly build --verbose --features="${EXTRA_FEATURES}" || exit 1
- cargo +nightly test --workspace --verbose --features="${EXTRA_FEATURES}"
- cargo +nightly build --verbose --features="${FEATURES}" || exit 1
- cargo +nightly test --workspace --verbose --features="${FEATURES}"

stable-test:
<<: *docker-env
stage: test
variables:
EXTRA_FEATURES: ""
FEATURES: ""
script:
- cargo +stable build --verbose --features="${EXTRA_FEATURES}" || exit 1
- cargo +stable test --workspace --verbose --features="${EXTRA_FEATURES}"
- cargo +stable build --verbose --features="${FEATURES}" || exit 1
- cargo +stable test --workspace --verbose --features="${FEATURES}"

# For now simply collect artifacts
artifacts:
<<: *docker-env
<<: *collect-artifacts
stage: deploy
variables:
EXTRA_FEATURES: "dist-client,dist-server"
FEATURES: "dist-client,dist-server"
script:
- cargo +stable build --release --features="${EXTRA_FEATURES}"
- cargo +stable build --release --features="${FEATURES}"
# collect artifacts
- mkdir -p ./artifacts/sccache/
- mv ./target/release/sccache ./artifacts/sccache/.

0 comments on commit e733648

Please sign in to comment.