aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-12-17 10:33:49 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-12-17 10:34:18 +0100
commit9aca24a73800eb824f012790fd9deebef71589f4 (patch)
treec6a0b11642d9bf35aa2f01ac0a6f96238b4a2588
parent526339f4491ab0138731ada3a36a5dfc6aa8848f (diff)
downloadglutin-9aca24a73800eb824f012790fd9deebef71589f4.tar.gz
glutin-9aca24a73800eb824f012790fd9deebef71589f4.zip
Add automatic gh-pages deployment in travis
-rw-r--r--.travis.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index afd21a7..9685521 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,9 @@
language: rust
+env:
+ global:
+ - secure: "H7JRHaCkm6NvmMU76pNUyK5fj8d0kEb1snGCTcC4ZdW98P5qSEDbMBOKZgSW0DNhKmzYS1qHHAXlmm9c9JCVYfeErL9JeTrRk4DvIO8sH3ImhHIB/q4U+h+hxZ6W+dGpTi0kjQ5ZS3z+Mlr/9CB4UT83HmF78Zfyf6KA15esUIQ="
+
install:
- sudo apt-get install libXxf86vm-dev libosmesa6-dev
@@ -11,3 +15,12 @@ script:
os:
- linux
- osx
+
+after_success: |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ cargo doc &&
+ echo '<meta http-equiv=refresh content=0;url=glutin/index.html>' > target/doc/index.html &&
+ sudo pip install ghp-import &&
+ ghp-import -n target/doc &&
+ git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages