Run most CI steps in docker
This commit is contained in:
parent
9c3f65bca9
commit
ae29641a18
|
@ -1,10 +1,26 @@
|
||||||
steps:
|
steps:
|
||||||
- command: "ci/coverage.sh"
|
- command: "ci/coverage.sh"
|
||||||
label: "coverage [public]"
|
label: "coverage"
|
||||||
|
# TODO: Run coverage in a docker image rather than assuming kcov/cargo-kcov
|
||||||
|
# is installed on the build agent...
|
||||||
|
#plugins:
|
||||||
|
# docker#v1.1.1:
|
||||||
|
# image: "rust"
|
||||||
|
# user: "998:997" # buildkite-agent:buildkite-agent
|
||||||
|
# environment:
|
||||||
|
# - CODECOV_TOKEN=$CODECOV_TOKEN
|
||||||
- command: "ci/test-stable.sh"
|
- command: "ci/test-stable.sh"
|
||||||
label: "stable [public]"
|
label: "stable [public]"
|
||||||
|
plugins:
|
||||||
|
docker#v1.1.1:
|
||||||
|
image: "rust"
|
||||||
|
user: "998:997" # buildkite-agent:buildkite-agent
|
||||||
- command: "ci/test-nightly.sh || true"
|
- command: "ci/test-nightly.sh || true"
|
||||||
label: "nightly - FAILURES IGNORED [public]"
|
label: "nightly - FAILURES IGNORED [public]"
|
||||||
|
plugins:
|
||||||
|
docker#v1.1.1:
|
||||||
|
image: "rustlang/rust:nightly"
|
||||||
|
user: "998:997" # buildkite-agent:buildkite-agent
|
||||||
- command: "ci/test-ignored.sh || true"
|
- command: "ci/test-ignored.sh || true"
|
||||||
label: "ignored - FAILURES IGNORED [public]"
|
label: "ignored - FAILURES IGNORED [public]"
|
||||||
- command: "ci/test-cuda.sh"
|
- command: "ci/test-cuda.sh"
|
||||||
|
@ -12,3 +28,10 @@ steps:
|
||||||
- wait
|
- wait
|
||||||
- command: "ci/publish.sh"
|
- command: "ci/publish.sh"
|
||||||
label: "publish release artifacts"
|
label: "publish release artifacts"
|
||||||
|
plugins:
|
||||||
|
docker#v1.1.1:
|
||||||
|
image: "rust"
|
||||||
|
user: "998:997" # buildkite-agent:buildkite-agent
|
||||||
|
environment:
|
||||||
|
- BUILDKITE_TAG=$BUILDKITE_TAG
|
||||||
|
- CRATES_IO_TOKEN=$CRATES_IO_TOKEN
|
||||||
|
|
|
@ -2,8 +2,16 @@
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
source $HOME/.cargo/env
|
if [[ -r ~/.cargo/env ]]; then
|
||||||
rustup update
|
# Pick up local install of kcov/cargo-kcov
|
||||||
|
source ~/.cargo/env
|
||||||
|
fi
|
||||||
|
|
||||||
|
rustc --version
|
||||||
|
cargo --version
|
||||||
|
kcov --version
|
||||||
|
cargo-kcov --version
|
||||||
|
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
cargo build
|
cargo build
|
||||||
cargo kcov
|
cargo kcov
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
source $HOME/.cargo/env
|
rustc --version
|
||||||
rustup update
|
cargo --version
|
||||||
|
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
cargo test -- --ignored
|
cargo test -- --ignored
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
source $HOME/.cargo/env
|
rustc --version
|
||||||
|
cargo --version
|
||||||
|
|
||||||
rustup component add rustfmt-preview
|
rustup component add rustfmt-preview
|
||||||
cargo fmt -- --write-mode=diff
|
cargo fmt -- --write-mode=diff
|
||||||
cargo build --verbose --features unstable
|
cargo build --verbose --features unstable
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
source $HOME/.cargo/env
|
rustc --version
|
||||||
|
cargo --version
|
||||||
|
|
||||||
rustup component add rustfmt-preview
|
rustup component add rustfmt-preview
|
||||||
cargo fmt -- --write-mode=diff
|
cargo fmt -- --write-mode=diff
|
||||||
cargo build --verbose
|
cargo build --verbose
|
||||||
|
|
Loading…
Reference in New Issue