forked from GuillaumeGomez/sysinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (91 loc) · 2.24 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
82
83
84
85
86
87
88
89
90
91
language: rust
matrix:
include:
- os: linux
rust: stable
dist: trusty
- os: linux
env: TARGET=armv7-unknown-linux-gnueabihf
rust: stable
dist: trusty
- os: linux
env: TARGET=arm-linux-androideabi
rust: stable
dist: trusty
- os: linux
env: TARGET=x86_64-apple-darwin
rust: stable
dist: trusty
- os: linux
env: TARGET=i686-unknown-linux-gnu
rust: stable
dist: trusty
- os: linux
env: TARGET=i686-unknown-linux-musl
rust: stable
dist: trusty
- os: linux
rust: nightly
dist: trusty
- os: linux
env: TARGET=armv7-unknown-linux-gnueabihf
rust: nightly
dist: trusty
- os: linux
env: TARGET=arm-linux-androideabi
rust: nightly
dist: trusty
- os: linux
env: TARGET=x86_64-apple-darwin
rust: nightly
dist: trusty
- os: linux
env: TARGET=i686-unknown-linux-gnu
rust: nightly
dist: trusty
- os: linux
env: TARGET=i686-unknown-linux-musl
rust: nightly
dist: trusty
- os: osx
rust: stable
- os: osx
rust: nightly
script:
- rustc --version
- sysctl -a | grep mem
- if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
(rustup component add clippy && cargo clippy) || touch clippy_install_failed;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cargo build --features debug;
elif [[ -n "$TARGET" ]]; then
rustup target add $TARGET;export EXTRA="--target=$TARGET";
fi
- echo $EXTRA
- if [[ -n "$EXTRA" ]]; then
RUST_BACKTRACE=1 cargo check $EXTRA;
else
RUST_BACKTRACE=1 cargo build;
fi
- if [[ "$TRAVIS_RUST_VERSION" == "nightly" && -z "$EXTRA" ]]; then
RUST_BACKTRACE=1 cargo bench;
fi
- if [[ -z "$EXTRA" ]]; then
RUST_BACKTRACE=1 cargo test;
fi
- cargo doc
- cd examples
- if [[ -z "$EXTRA" ]]; then
RUST_BACKTRACE=1 cargo build;
fi
- if [[ "$TRAVIS_RUST_VERSION" == "nightly" && -z "$EXTRA" && ! -f clippy_install_failed ]]; then
cargo clippy $EXTRA || echo "clippy failed";
fi
- cd ..
- if [[ -z "$EXTRA" ]]; then
make;
fi
- if [[ -z "$EXTRA" ]]; then
LD_LIBRARY_PATH=./target/debug ./simple;
fi