Upload docs to Rust CI as well
This commit is contained in:
parent
22ad6e7ea9
commit
a0d11bf7d6
24
.travis.yml
24
.travis.yml
|
@ -1,12 +1,20 @@
|
||||||
language: rust
|
language: rust
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
- cargo doc
|
- rustdoc --test README.md -L target
|
||||||
after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
|
- cargo doc
|
||||||
&& echo ''<meta http-equiv=refresh content=0;url=toml/index.html>'' > target/doc/index.html
|
after_success: |
|
||||||
&& sudo pip install ghp-import && ghp-import -n target/doc && git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
[ $TRAVIS_BRANCH = master ] &&
|
||||||
gh-pages '
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
|
echo '<meta http-equiv=refresh content=0;url=toml/index.html>' > target/doc/index.html &&
|
||||||
|
sudo pip install ghp-import &&
|
||||||
|
ghp-import -n target/doc &&
|
||||||
|
git push -f https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages &&
|
||||||
|
rm target/doc/index.html &&
|
||||||
|
mv target/doc . &&
|
||||||
|
(curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh)
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: bK8RmAtQcJvxXZFe+WqfRwuQqq1h3PXCFtrd73m4PWysdMEhtWb+ZKugPw8ykT3YVVLqbLnzH2Z8iM0RkF57aJvk7H1P4Syw4h2pPvvgP91ayzHbUnWwxkkJJ+oQ8lDJtcDHQ4BQhKMpTqY4tbaG6KeSwSdqDRCJuzHbZJzR0Eg=
|
- secure: bK8RmAtQcJvxXZFe+WqfRwuQqq1h3PXCFtrd73m4PWysdMEhtWb+ZKugPw8ykT3YVVLqbLnzH2Z8iM0RkF57aJvk7H1P4Syw4h2pPvvgP91ayzHbUnWwxkkJJ+oQ8lDJtcDHQ4BQhKMpTqY4tbaG6KeSwSdqDRCJuzHbZJzR0Eg=
|
||||||
|
- secure: WVCzGVsthRub6ezJU15xzo+ahlUoZEwvZDeMPmjIMf1G28ObE9Y4BeUNW0j9CxCjyQ+5S0mrp1l0TESN326XTDosigabDiGnKyr5wfncnreN3PCUi3gx7NI+bRTy9B3eV318BhuCDgLgRWLWufCyPtkgAdT6cl+u6p+bEh+vyxo=
|
||||||
|
|
Loading…
Reference in a new issue