Skip to content

Commit 2efee71

Browse files
committed
Tweak travis config to upload docs
1 parent efa0430 commit 2efee71

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
language: rust
2+
sudo: false
3+
script:
4+
- cargo build --verbose
5+
- cargo test --verbose
6+
- rustdoc --test README.md -L target/debug -L target/debug/deps
7+
- cargo doc
8+
after_success: |
9+
[ $TRAVIS_BRANCH = master ] &&
10+
[ $TRAVIS_PULL_REQUEST = false ] &&
11+
echo '<meta http-equiv=refresh content=0;url=unicode-width/index.html>' > target/doc/index.html &&
12+
pip install ghp-import --user $USER &&
13+
$HOME/.local/bin/ghp-import -n target/doc &&
14+
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
15+
env:
16+
global:
17+
secure: sF21oZa17vX3iE16x7lt2VsdcSYUJ5PtEwJzQ9Ab/0zFaNc5LUXFUOBddMS9LxYnwO1WI9iOVOYC2NbXT4oRgjZ2cmkatoE6nGHmkqUe4paxVy1Fg6ncjYO1jZwoRSSn1mi0CcwoHq46r2l6FaD0InJExwa3dzk63B9SjIUiekw=
18+
notifications:
19+
email:
20+
on_success: never

0 commit comments

Comments
 (0)