forked from Ogeon/palette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 812 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
42
43
language: rust
sudo: false
cache:
directories:
- $HOME/.cargo
rust:
- stable
- beta
- nightly
env:
- RUSTFLAGS="-D warnings"
os:
- linux
- osx
branches:
only:
- master
- staging
- trying
- /^\d+\.\d+$/
script:
- cd palette_derive
- cargo build -v
- cd ../palette
- cargo build -v
- cargo test -v
- bash ../scripts/test_features.sh
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
cd ../no_std_test;
cargo build -v --features nightly;
fi
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
rustup target add thumbv6m-none-eabi;
cargo build -v --features nightly --target thumbv6m-none-eabi;
fi;
- cd ..
- cargo doc --all --exclude no_std_test
after_success:
- sh scripts/upload_doc.sh