diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-09-22 21:41:50 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-22 21:41:50 -0700 |
commit | a7ef29e8369ca9c578ccb48bfc26bc5478d563fe (patch) | |
tree | 703c4920e374399c3e2deac908135b49e0ed4936 /.travis.yml | |
parent | 0958deca7377d0f0af9e4bfe3c437248867038d2 (diff) | |
download | ssh2-rs-a7ef29e8369ca9c578ccb48bfc26bc5478d563fe.zip |
Upload docs to Rust CI as well
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 2223a86..1e51453 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,9 @@ before_script: - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys - telnet localhost 22 & script: - - cargo build - - cargo test + - cargo build --verbose + - cargo test --verbose + - rustdoc --test README.md -L target - cargo doc after_success: | [ $TRAVIS_BRANCH = master ] && @@ -15,7 +16,11 @@ after_success: | echo '<meta http-equiv=refresh content=0;url=ssh2/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 + 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: global: - secure: Wrpw+jdyNWeNJ0SpVr3py3FOjzChb46oh12UV0oUVfSGDI4eHwWf0gcHkRg3vh4FxACPaWyT/bygaOTyVpYC4almV+IGUvywReH9rVYZ0B/72k6VIY+746xmJYcktQ2ZmyahVhOFmKnBoY5tCVWi/qbwT0gKMhch/R8Cin5whdc= + - secure: Wrpw+jdyNWeNJ0SpVr3py3FOjzChb46oh12UV0oUVfSGDI4eHwWf0gcHkRg3vh4FxACPaWyT/bygaOTyVpYC4almV+IGUvywReH9rVYZ0B/72k6VIY+746xmJYcktQ2ZmyahVhOFmKnBoY5tCVWi/qbwT0gKMhch/R8Cin5whdc= + - secure: eUslk5LsvpQ/kf0AFYVTtYagmo58Um3G6fE79Pb0lkOLEvvk4lTgRZY/vwfggojWsrnU8H1c3hBbbEYnC9tUja7n7ubuZeKjNUKItaIZqTxmvCUYABgXHSHZnuNstEwUq+FzGTLlquZtb5TRu2GsJyf/Yi1gZyjqJYKYfGKwSUc= |