summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-18 13:18:36 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-18 13:34:11 -0700
commit2286cc8cf6c17cef456a89cc160a7400174761ce (patch)
tree57a570e9c8bd800e41e200c3502a456f3f87847c /.travis.yml
parentc95e6ea1e74f82f1a889302978e37a7baf4073cf (diff)
downloadssh2-rs-2286cc8cf6c17cef456a89cc160a7400174761ce.zip
Upload docs to gh-pages
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index d1fb1f2..2223a86 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,3 +3,19 @@ before_script:
- ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
+ - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
+ - telnet localhost 22 &
+script:
+ - cargo build
+ - cargo test
+ - cargo doc
+after_success: |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ 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
+env:
+ global:
+ secure: Wrpw+jdyNWeNJ0SpVr3py3FOjzChb46oh12UV0oUVfSGDI4eHwWf0gcHkRg3vh4FxACPaWyT/bygaOTyVpYC4almV+IGUvywReH9rVYZ0B/72k6VIY+746xmJYcktQ2ZmyahVhOFmKnBoY5tCVWi/qbwT0gKMhch/R8Cin5whdc=