forked from mciantyre/teensy4-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 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
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_install:
- sudo apt-get update
- sudo apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi
- rustup component add rustfmt
- rustup component add clippy
- rustup target add thumbv7em-none-eabihf
script:
- export RUST_HOST_TARGET="$(rustc --verbose --version | grep host | cut -d' ' -f2)"
- cargo build --verbose --all
- cargo fmt --all -- --check
- cargo clippy -- --deny warnings
# FCB generation crate checks
- cd imxrt1062-fcb-gen
- cargo test --target $RUST_HOST_TARGET
- cargo clippy --target $RUST_HOST_TARGET -- --deny warnings
- cd ..
# PAC import tool checks
- cd tools
- cargo test --target $RUST_HOST_TARGET
- cargo clippy --target $RUST_HOST_TARGET -- --deny warnings
- cd ..
cache: cargo