blob: fb591b2e1d8269527ce9e264ec67bf94c5dc591a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
language: rust
matrix:
fast_finish: true
include:
- rust: nightly
- rust: beta
- rust: stable
script:
- cargo build
- cargo doc --no-deps
after_success: |-
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: g6bA+i74nfMtxyHLJHIKd3wD66Mwpr1KcEkOlH3bWtujFj33KcC2AOjeuFtw4i1AjYW1f4ni1UbANJOwnfHPrgnCE/OSLJstXg37f7uA+CAOsqiePr1dnbEozGoY4hSiudYeteX/IX2zREXSOjnSjUKmpsmce1ZUEBxdYyDMiB4=
|