3eb4a48b1b
Previously we were somewhat half-Docker, half-Travis, half apt-get, etc. This commit alters the CI infrastructure to use Docker images for each target. This should make it much easier to update the images and tweak various bits and pieces of installed software. Additionally, it's also much clearer now what's needed for each suite of tests! Some images were updated a bit (e.g. musl is now 1.1.14), but other images encountered failures when updating so they're not getting updated just yet.
26 lines
468 B
Bash
26 lines
468 B
Bash
# Small script to run tests for a target (or all targets) inside all the
|
|
# respective docker images.
|
|
|
|
set -ex
|
|
|
|
run() {
|
|
echo $1
|
|
docker build -t libc ci/docker/$1
|
|
docker run \
|
|
-v `rustc --print sysroot`:/rust:ro \
|
|
-v `pwd`:/checkout:ro \
|
|
-e CARGO_TARGET_DIR=/tmp/target \
|
|
-w /checkout \
|
|
--privileged \
|
|
-it libc \
|
|
ci/run.sh $1
|
|
}
|
|
|
|
if [ -z "$1" ]; then
|
|
for d in `ls ci/docker/`; do
|
|
run $d
|
|
done
|
|
else
|
|
run $1
|
|
fi
|