blob: 7a907b1f8aed8b53208b3bb6d03a1e3f0169e15d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
language: rust
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=
|