summaryrefslogtreecommitdiff
path: root/ci/run-all.sh
blob: a7d1ece9ea96e220ef47cb8c8423681af790ff60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#
# Build nix and all tests for as many versions and platforms as can be
# managed.  This requires docker.
#

set -e

BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
RUN_DOCKER="${BASE_DIR}/ci/run-docker.sh"

export RUST_VERSION=1.7.0

export DOCKER_IMAGE=posborne/rust-cross:x86
RUST_TARGET=i686-unknown-linux-gnu ${RUN_DOCKER}
RUST_TARGET=x86_64-unknown-linux-gnu ${RUN_DOCKER}
RUST_TARGET=x86_64-unknown-linux-musl ${RUN_DOCKER}

export DOCKER_IMAGE=posborne/rust-cross:arm
RUST_TARGET=aarch64-unknown-linux-gnu ${RUN_DOCKER}
RUST_TARGET=arm-linux-gnueabi ${RUN_DOCKER}
RUST_TARGET=arm-linux-gnueabihf ${RUN_DOCKER}

export DOCKER_IMAGE=posborne/rust-cross:mips
RUST_TARGET=mips-unknown-linux-gnu ${RUN_DOCKER}
RUST_TARGET=mipsel-unknown-linux-gnu ${RUN_DOCKER}

export DOCKER_IMAGE=posborne/rust-cross:android ${RUN_DOCKER}
RUST_TARGET=arm-linux-androideabi ${RUN_DOCKER}