-
Notifications
You must be signed in to change notification settings - Fork 157
/
.travis.yml
41 lines (35 loc) · 1.12 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
language: rust
sudo: false
rust:
- 1.40.0 # minimum supported rustc version
- stable
- beta
- nightly
matrix:
fast_finish: true
allow_failures:
- rust: nightly
# Don't fail the build if a dependency updates, but at least have a canary so
# we know when it happens.
- rust: 1.40.0
include:
- rust: 1.40.0 # minimum supported rustc version
env: FEATURES="--no-default-features"
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build -- $FEATURES &&
travis-cargo test -- $FEATURES &&
travis-cargo doc -- $FEATURES &&
echo "Testing README" &&
rustdoc --test README.md -L dependency=./target/debug/deps --extern nickel=./target/debug/libnickel.rlib
after_success:
- |
(echo "docs.nickel.rs" > target/doc/CNAME) &&
travis-cargo --only stable doc-upload
env:
global:
secure: nPXTdkq9TK4LmqJWqB4jxscDG1mnqJzO0UX5ni+oC0SohjgBxdWjbvJ8Kthk3c8Qg/2zGlCryuT1lV4TcD3jF86MHlRlXsO3G8fCbEGdLLzppbV0A2VnEw1knhv2mfUhxA8hsFJE2ncT5qeOVyQ6N3PAMGoYkdhhbD9N/9EWuqs=
matrix:
- FEATURES=""