forked from johnthagen/min-sized-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 895 Bytes
/
.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
language: rust
matrix:
include:
- os: linux
rust: 1.28.0
- os: linux
rust: stable
- os: osx
rust: stable
- os: windows
rust: stable
- os: linux
rust: nightly
env: CI_BUILD_TYPE="xargo"
- os: linux
rust: nightly
env: CI_BUILD_TYPE="panic_immediate_abort"
- os: linux
rust: nightly
env: CI_BUILD_TYPE="no_main"
cache: cargo
script:
- bash -c '
if [[ -n "$CI_BUILD_TYPE" ]]; then
cd "$CI_BUILD_TYPE";
fi
if [[ "$CI_BUILD_TYPE" == "xargo" ]] || [[ "$CI_BUILD_TYPE" == "panic_immediate_abort" ]] ||
[[ "$CI_BUILD_TYPE" == "no_main" ]]; then
rustup component add rust-src;
cargo install xargo --force;
xargo build --target x86_64-unknown-linux-gnu --release --verbose;
else
cargo build --release --verbose --all;
fi'
notifications:
email: false