|
|
@@ -7,17 +7,16 @@ install:
|
|
|
- tar xf cargo-nightly-linux.tar.gz
|
|
|
- sudo ./cargo-nightly/install.sh
|
|
|
|
|
|
- - sudo pip install ghp-import
|
|
|
-
|
|
|
script:
|
|
|
- cargo build
|
|
|
- cargo test
|
|
|
- rustdoc src/url.rs -L target/deps
|
|
|
- - echo '<meta http-equiv=refresh content=0;url=url_/index.html">' > doc/index.html
|
|
|
+ - echo '<meta http-equiv=refresh content=0;url=url_/index.html>' > doc/index.html
|
|
|
|
|
|
after_success: |
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
+ sudo pip install ghp-import &&
|
|
|
ghp-import -n doc &&
|
|
|
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
|
|