-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
51 lines (42 loc) · 1.13 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
language: rust
matrix:
include:
- env: TARGET_BUILD=thumbv6m-none-eabi
rust: nightly
- env: TARGET_BUILD=thumbv7em-none-eabihf
rust: nightly
- env: TARGET_BUILD=armv7-unknown-linux-gnueabihf
rust: nightly
- env: TARGET_BUILD=x86_64-unknown-linux-gnu
rust: nightly
before_install:
- set -e
- rustup self update
- sudo apt-get update -qq
install:
- rustup override set nightly
- rustup component add rust-src
- rustup target add arm-unknown-linux-gnueabi
- rustup target add armv7-unknown-linux-gnueabihf
- rustup target add thumbv7em-none-eabihf
- rustup target add thumbv7em-none-eabi
- rustup target add thumbv6m-none-eabi
- rustup target add thumbv7m-none-eabi
- source ~/.cargo/env || true
script:
- cargo build --target $TARGET_BUILD
- cargo build --target $TARGET_BUILD --release
- cargo check
after_script: set +e
cache:
cargo: true
directories:
- $HOME/.xargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
#after_success:
# - bash ci/after_success.sh
notifications:
email:
on_success: never