forked from benfred/py-spy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (38 loc) · 1.36 KB
/
.travis.yml
File metadata and controls
41 lines (38 loc) · 1.36 KB
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
language: rust
sudo: required
dist: xenial
matrix:
include:
- env: TARGET=i686-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-musl
- env: TARGET=armv7-unknown-linux-gnueabihf
- env: TARGET=x86_64-apple-darwin
os: osx
before_install:
- |
rustup target add $TARGET
if [ $TARGET = x86_64-unknown-linux-musl ]; then
sudo apt-get install musl-tools
# download libunwind and build a static version w/ musl-gcc
wget https://github.com/libunwind/libunwind/releases/download/v1.3.1/libunwind-1.3.1.tar.gz
tar -zxvf libunwind-1.3.1.tar.gz
cd libunwind-1.3.1/
CC=musl-gcc ./configure --disable-minidebuginfo --enable-ptrace --disable-tests --disable-documentation
make
sudo make install
elif [ $TARGET = x86_64-unknown-linux-gnu ]; then
sudo apt-get install libunwind-dev
elif [ $TARGET = armv7-unknown-linux-gnueabihf ]; then
sudo apt-get install gcc-arm-linux-gnueabihf gcc-5-multilib-arm-linux-gnueabihf libc-dev-armhf-cross
elif [ $TARGET = i686-unknown-linux-gnu ]; then
sudo apt-get install gcc-multilib
fi
script:
- |
if [ $TARGET = armv7-unknown-linux-gnueabihf ]; then
# we can't run the unittest w/ ARM so just test that we can compile
cargo build --verbose --target $TARGET
else
cargo test --verbose --target $TARGET
fi