diff options
author | Matan Kushner <hello@matchai.me> | 2019-05-01 11:12:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 11:12:02 -0400 |
commit | d945b03093cf130bdc702056650f7e8e8869753b (patch) | |
tree | 73a2d8d286757aef31f2d54dafc9a1bfdc2be629 /tests | |
parent | 0b9334f4385897e8885212f7e399c7809379595e (diff) |
Install a fixed version of rust for CI integration tests (#39)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/Dockerfile b/tests/Dockerfile index 992e31ea3..bd1bcaa4e 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:latest +FROM rust:1.34.0 # Install Node.js ENV NODE_VERSION 12.0.0 @@ -24,7 +24,8 @@ RUN mkdir benches RUN touch benches/my_benchmark.rs # This is a dummy build to get dependencies cached -RUN cargo build --release +RUN rustup install stable +RUN rustup run stable cargo build --release # Delete the dummy build RUN rm -rf /starship @@ -33,4 +34,5 @@ RUN rm -rf /starship RUN mkdir starship WORKDIR /starship -CMD [ "cargo", "test", "--", "--ignored"] +# Run with rustup to use stable instead of the Rust default +CMD [ "rustup", "run", "stable", "cargo", "test", "--", "--ignored"] |