forked from mvdnes/spin-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (30 loc) · 897 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
language: rust
rust:
- stable
- beta
- nightly
sudo: false
notifications:
email:
on_success: never
on_failure: always
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
# Nightly tests with default features
- travis-cargo --only nightly build
- travis-cargo --only nightly test
- travis-cargo --only nightly doc -- --no-deps
# Ensure things work with features disabled
- travis-cargo build -- --no-default-features
- travis-cargo test -- --no-default-features
- rustdoc --test README.md -L target/debug
after_success:
- curl https://mvdnes.github.io/rust-docs/travis-doc-upload.sh | bash
env:
global:
# override the default `--features unstable` used by travis-cargo
# since unstable is activated by default
- TRAVIS_CARGO_NIGHTLY_FEATURE=""