This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (74 loc) · 2.23 KB
/
.travis.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cache: cargo
dist: trusty
language: rust
rust: nightly
services: docker
sudo: required
env:
global:
- TARGET=x86_64-unknown-linux-gnu
matrix:
include:
# OSX
- env: TARGET=i686-apple-darwin
os: osx
- env: TARGET=x86_64-apple-darwin
os: osx
# Linux
- env: TARGET=aarch64-unknown-linux-gnu
- env: TARGET=arm-unknown-linux-gnueabi
- env: TARGET=arm-unknown-linux-gnueabihf
- env: TARGET=arm-unknown-linux-musleabi
- env: TARGET=arm-unknown-linux-musleabihf
- env: TARGET=armv7-unknown-linux-gnueabihf
- env: TARGET=armv7-unknown-linux-musleabihf
- env: TARGET=i586-unknown-linux-gnu
- env: TARGET=i686-unknown-linux-gnu
- env: TARGET=i686-unknown-linux-musl
- env: TARGET=mips-unknown-linux-gnu
- env: TARGET=mips-unknown-linux-musl
- env: TARGET=mips64-unknown-linux-gnuabi64
- env: TARGET=mips64el-unknown-linux-gnuabi64
- env: TARGET=mipsel-unknown-linux-gnu
- env: TARGET=mipsel-unknown-linux-musl
- env: TARGET=powerpc-unknown-linux-gnu
- env: TARGET=powerpc64-unknown-linux-gnu
- env: TARGET=powerpc64le-unknown-linux-gnu
- env: TARGET=s390x-unknown-linux-gnu
# - env: TARGET=thumbv6m-none-eabi
# - env: TARGET=thumbv7em-none-eabi
# - env: TARGET=thumbv7em-none-eabihf
# - env: TARGET=thumbv7m-none-eabi
- env: TARGET=x86_64-unknown-linux-musl
install:
# `libc`
- git clone --depth 1 https://github.com/rust-lang/libc
# `rustc` + Cargo
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
- source ~/.cargo/env
# `rust-std`
- case $TARGET in
x86_64-apple-darwin | x86_64-unknown-linux-gnu | thumbv*-none-eabi*) ;;
*) rustup target add $TARGET;;
esac
# `rust-src`
- rustup component add rust-src
# for transparent QEMU user emulation
- test $TRAVIS_OS_NAME = osx ||
docker run --privileged --rm -it ubuntu:16.04 sh -c
"apt-get update && apt-get install -qq binfmt-support qemu-user-static"
script:
- cargo generate-lockfile
- if [[ $TRAVIS_OS_NAME = linux ]]; then
sh ci/run-docker.sh $TARGET;
else
bash ci/run.sh;
fi
- chmod -R a+r $HOME/.cargo
branches:
only:
- auto
- try
notifications:
email:
on_success: never