forked from m4b/goblin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (35 loc) · 810 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
language: rust
rust:
- 1.36.0
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
fast_finish: true
allow_failures:
- rust: nightly
script:
- if [ "$TRAVIS_OS_NAME" = linux ] && [ "$TRAVIS_RUST_VERSION" = stable ]; then
rustup component add rustfmt;
cargo fmt -- --check;
fi
- cargo build --verbose
- cargo test --verbose
- cargo build --release
- cargo test --release
- make api
before_deploy:
- cargo doc --no-deps
- echo '<meta http-equiv=refresh content=0;url=goblin/index.html>' > target/doc/index.html;
deploy:
- provider: pages
skip-cleanup: true
local-dir: target/doc
github-token: "$GITHUB_OAUTH_TOKEN"
keep-history: false
on:
branch: master
condition: $TRAVIS_OS_NAME = "linux" && $TRAVIS_RUST_VERSION = "stable"