-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1.04 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
# inspiration from https://github.com/Nemo157/roaring-rs/blob/master/.travis.yml
language: rust
rust:
- stable
- beta
- nightly-2018-10-09
cache: cargo
addons:
apt:
packages:
- gcc-avr
- binutils-avr
- avr-libc
- libgtk-3-dev
# before_script:
# - (cargo install rustfmt || true)
# - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
# cargo install clippy --force;
# fi'
script:
- export PATH=$PATH:~/.cargo/bin
# - cargo fmt -- --write-mode=diff
- cargo build --features strict && cargo test --features strict
- cargo build --no-default-features --features strict && cargo test --no-default-features --features strict
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly-2018-10-09" ]]; then
cargo build --features "strict jit" && cargo test --features "strict jit";
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly-2018-10-09" ]]; then
cargo build --no-default-features --features "strict jit" && cargo test --no-default-features --features "strict jit";
fi'