Use custom rust nightly image with cargo-cov and clippy pre-installed
This commit is contained in:
committed by
Greg Fitzgerald
parent
350cf62b90
commit
84c28a077a
@ -7,7 +7,7 @@ steps:
|
|||||||
- command: "ci/shellcheck.sh"
|
- command: "ci/shellcheck.sh"
|
||||||
name: "shellcheck [public]"
|
name: "shellcheck [public]"
|
||||||
timeout_in_minutes: 20
|
timeout_in_minutes: 20
|
||||||
- command: "ci/docker-run.sh rustlang/rust:nightly ci/test-nightly.sh"
|
- command: "ci/docker-run.sh solanalabs/rust-nightly ci/test-nightly.sh"
|
||||||
name: "nightly [public]"
|
name: "nightly [public]"
|
||||||
env:
|
env:
|
||||||
CARGO_TARGET_CACHE_NAME: "nightly"
|
CARGO_TARGET_CACHE_NAME: "nightly"
|
||||||
|
3
ci/docker-rust-nightly/Dockerfile
Normal file
3
ci/docker-rust-nightly/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM rustlang/rust:nightly
|
||||||
|
|
||||||
|
RUN cargo install --force clippy cargo-cov
|
6
ci/docker-rust-nightly/README.md
Normal file
6
ci/docker-rust-nightly/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Docker image containing rust nightly and some preinstalled crates used in CI.
|
||||||
|
|
||||||
|
This image may be manually updated by running `./build.sh` if you are a member
|
||||||
|
of the [Solana Labs](https://hub.docker.com/u/solanalabs/) Docker Hub
|
||||||
|
organization, but it is also automatically updated periodically by
|
||||||
|
[this automation](https://buildkite.com/solana-labs/solana-ci-docker-rust-nightly).
|
6
ci/docker-rust-nightly/build.sh
Executable file
6
ci/docker-rust-nightly/build.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
docker build -t solanalabs/rust-nightly .
|
||||||
|
docker push solanalabs/rust-nightly
|
@ -18,7 +18,6 @@ _ cargo test --verbose --features unstable
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
# Coverage disabled (see issue #433)
|
# Coverage disabled (see issue #433)
|
||||||
_ cargo install --force cargo-cov
|
|
||||||
_ cargo cov test
|
_ cargo cov test
|
||||||
_ cargo cov report
|
_ cargo cov report
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user