Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Run most CI steps in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed May 23, 2018
1 parent 9c3f65b commit 8a6985c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
23 changes: 22 additions & 1 deletion ci/buildkite.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
steps:
- command: "ci/coverage.sh"
label: "coverage [public]"
label: "coverage"
plugins:
docker#v1.1.1:
image: "rust"
user: "998:997"
environment:
- CODECOV_TOKEN=$CODECOV_TOKEN
- command: "ci/test-stable.sh"
label: "stable [public]"
plugins:
docker#v1.1.1:
image: "rust"
user: "998:997"
- command: "ci/test-nightly.sh || true"
label: "nightly - FAILURES IGNORED [public]"
plugins:
docker#v1.1.1:
image: "rustlang/rust:nightly"
user: "998:997"
- command: "ci/test-ignored.sh || true"
label: "ignored - FAILURES IGNORED [public]"
- command: "ci/test-cuda.sh"
label: "cuda"
- wait
- command: "ci/publish.sh"
label: "publish release artifacts"
plugins:
docker#v1.1.1:
image: "rust"
user: "998:997"
environment:
- BUILDKITE_TAG=$BUILDKITE_TAG
- CRATES_IO_TOKEN=$CRATES_IO_TOKEN
5 changes: 3 additions & 2 deletions ci/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

cd $(dirname $0)/..

source $HOME/.cargo/env
rustup update
rustc --version
cargo --version

export RUST_BACKTRACE=1
cargo build
cargo kcov
Expand Down
5 changes: 3 additions & 2 deletions ci/test-ignored.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

cd $(dirname $0)/..

source $HOME/.cargo/env
rustup update
rustc --version
cargo --version

export RUST_BACKTRACE=1
cargo test -- --ignored
4 changes: 3 additions & 1 deletion ci/test-nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

cd $(dirname $0)/..

source $HOME/.cargo/env
rustc --version
cargo --version

rustup component add rustfmt-preview
cargo fmt -- --write-mode=diff
cargo build --verbose --features unstable
Expand Down
4 changes: 3 additions & 1 deletion ci/test-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

cd $(dirname $0)/..

source $HOME/.cargo/env
rustc --version
cargo --version

rustup component add rustfmt-preview
cargo fmt -- --write-mode=diff
cargo build --verbose
Expand Down

0 comments on commit 8a6985c

Please sign in to comment.