-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
70 lines (60 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: rust
rust:
- 1.41.1
matrix:
allow_failures:
- env: FEATURE=non-fatal-checks
fast_finish: true
cache:
cargo: true
directories:
- node_modules
dist: trusty
sudo: required
env:
global:
- DEADLINKS_VERS=0.3.0
- RUSTFLAGS="-D warnings"
matrix:
- FEATURE=test
jobs:
include:
# Formatting & other lints that do not require compilation
- name: lints
install:
- rustup component add rustfmt-preview
- rustfmt --version
- nvm install 8 && nvm use 8
- npm install cspell
- ./node_modules/.bin/cspell --version
- npm install markdownlint-cli
- ./node_modules/.bin/markdownlint --version
script:
- cargo fmt --all -- --check
- ./run-lints.sh
# Clippy linting
- name: clippy
install:
- rustup component add clippy-preview
- cargo clippy --version
script:
- cargo clippy --all -- -D warnings
# Tests
- name: linux-tests
script:
- cargo test --all
# Windows tests
- name: windows-tests
env:
- FEATURE=non-fatal-checks
os: windows
script:
- cargo test
# Non-fatal checks
- name: deadlinks
env: FEATURE=non-fatal-checks
install:
- cargo-deadlinks -V | grep $DEADLINKS_VERS || cargo install cargo-deadlinks --vers $DEADLINKS_VERS --force
script:
- cargo doc --no-deps
- cargo deadlinks --dir target/doc