Last active
May 13, 2020 13:26
-
-
Save pingw33n/31bbca5ef029a79fb24dc5b9a728a0b0 to your computer and use it in GitHub Desktop.
Running `cargo test` in Linux Docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p target/docker_cargo; docker run --rm -it --user "$(id -u)":"$(id -g)" -v "$PWD":/usr/src/app -v "$PWD/target/docker_cargo":/usr/local/cargo/registry -w /usr/src/app rust:$(rustc -V | awk '{print $2}') cargo test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment