Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI overhaul follow-ups #240

Merged
merged 2 commits into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Solana crate](https://img.shields.io/crates/v/solana.svg)](https://crates.io/crates/solana)
[![Solana documentation](https://docs.rs/solana/badge.svg)](https://docs.rs/solana)
[![Build Status](https://travis-ci.org/solana-labs/solana.svg?branch=master)](https://travis-ci.org/solana-labs/solana)
[![Build status](https://badge.buildkite.com/d4c4d7da9154e3a8fb7199325f430ccdb05be5fc1e92777e51.svg)](https://buildkite.com/solana-labs/solana)
[![codecov](https://codecov.io/gh/solana-labs/solana/branch/master/graph/badge.svg)](https://codecov.io/gh/solana-labs/solana)

Disclaimer
Expand Down
25 changes: 24 additions & 1 deletion ci/buildkite.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
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"
label: "cuda"
- 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
12 changes: 10 additions & 2 deletions ci/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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