Run most CI steps in docker

This commit is contained in:
Michael Vines 2018-05-22 16:57:14 -07:00
parent 9c3f65bca9
commit ae29641a18
5 changed files with 43 additions and 7 deletions

View File

@ -1,10 +1,26 @@
steps:
- 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"
label: "stable [public]"
plugins:
docker#v1.1.1:
image: "rust"
user: "998:997" # buildkite-agent:buildkite-agent
- command: "ci/test-nightly.sh || true"
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"
label: "ignored - FAILURES IGNORED [public]"
- command: "ci/test-cuda.sh"
@ -12,3 +28,10 @@ steps:
- wait
- command: "ci/publish.sh"
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

View File

@ -2,8 +2,16 @@
cd $(dirname $0)/..
source $HOME/.cargo/env
rustup update
if [[ -r ~/.cargo/env ]]; then
# 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
cargo build
cargo kcov

View File

@ -2,7 +2,8 @@
cd $(dirname $0)/..
source $HOME/.cargo/env
rustup update
rustc --version
cargo --version
export RUST_BACKTRACE=1
cargo test -- --ignored

View File

@ -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

View File

@ -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