nix/ci/run-docker.sh
Paul Osborne cd3fdaf991 testing: move to new posborne/rust-cross images
The rust-cross image is no longer all-in-one but broken out by architecture
class (or platform in the case of android).

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13 15:04:46 -05:00

16 lines
541 B
Bash
Executable File

#!/bin/bash
#
# Run the nix tests in a docker container. This script expects the following
# environment variables to be set:
# - DOCKER_IMAGE : Docker image to use for testing (e.g. posborne/rust-cross:arm)
# - RUST_VERSION : Rust Version to test against (e.g. 1.7.0)
# - RUST_TARGET : Target Triple to test
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
docker run -i -t \
-v ${BASE_DIR}:/source \
-e CARGO_TARGET_DIR=/build \
${DOCKER_IMAGE} \
/source/ci/run.sh ${RUST_VERSION} ${RUST_TARGET}