-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
45 lines (37 loc) · 847 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
44
45
language: rust
rust:
- stable
- beta
- nightly
script:
- cargo test --all
- cargo test --all --release
matrix:
include:
- os: osx
- os: windows
- name: cargo clippy
install:
- rustup component add clippy
script:
- cargo clippy --all --all-targets -- -D warnings
- name: cargo fmt
install:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- name: diff src/thirdparty.rs
script:
- diff src/thirdparty.rs <(cargo run -- lichking bundle --variant source) || (
echo 'Thirdparty license bundle out of date, please update with:';
echo ' cargo run -- lichking bundle --variant source --file src/thirdparty.rs';
exit 1
)
addons:
apt:
sources:
- kalakris-cmake
packages:
- cmake
branches:
only: [staging, trying, master]