Skip to content

Commit 60c9b4f

Browse files
committed
Upload docs to Rust CI as well
1 parent 08dc5e6 commit 60c9b4f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.travis.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ language: rust
22
script:
33
- cargo build --verbose
44
- cargo test --verbose
5-
- cargo doc --verbose
6-
after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
7-
&& echo ''<meta http-equiv=refresh content=0;url=git2/index.html>'' > target/doc/index.html
8-
&& sudo pip install ghp-import && ghp-import -n target/doc && git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
9-
gh-pages '
5+
- rustdoc --test README.md -L target
6+
- cargo doc
7+
after_success: |
8+
[ $TRAVIS_BRANCH = master ] &&
9+
[ $TRAVIS_PULL_REQUEST = false ] &&
10+
echo '<meta http-equiv=refresh content=0;url=git2/index.html>' > target/doc/index.html &&
11+
sudo pip install ghp-import &&
12+
ghp-import -n target/doc &&
13+
git push -f https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages &&
14+
rm target/doc/index.html &&
15+
mv target/doc . &&
16+
(curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh)
1017
env:
1118
global:
12-
- LD_LIBRARY_PATH: /usr/local/lib
1319
- secure: e1hWVY9DVAuvwEJ3r8dGcH51nq+WieVZa5gnBIAde1joE3V0nz+suhQRJbU0oXoNj5JLTKwHqkSltvz5P9WeKOshqdRBtM83KaX5d5oiVuQVEs+JHPIvdOWWq8Kmpv19ypUqJXnb5sFzqgSOJCN/p3erxgfBc/NOkmBavPSXVxI=
20+
- secure: HLNGKgFhoM0d5o7IRgvnffClGTacrQZjnUd0BSihAW6zKKhELuQ6b1KMoEw+4iz4aZdZ1aVNfciCJYMjLZlqDC7d77lJ6l4UrPQ0wUUriAHvCcE2iOnSNBI6CN75/vzO7lr5jKkFzaDqz9AmOd7JzF8u03K2yye8gX6wAxWRxIw=

0 commit comments

Comments
 (0)