Skip to content

Commit

Permalink
Autogenerate docs to Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jgilchrist committed Jan 4, 2015
1 parent ba2b848 commit 1572a48
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
language: rust

before_install:
- sudo apt-get update -qq

install:
- sudo apt-get install -y upx electric-fence libsdl1.2-dev

script:
- cargo build --verbose
- cargo test --verbose

after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo '<meta http-equiv=refresh content="0;url=tcod/index.html">' > target/doc/index.html &&
git config --global user.email "[email protected]" &&
git config --global user.name "travis-ci" &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: yTCiLqKu5ceqvIJhTepiv/VTUTTYTHYNeTicO6Rsfs/RLlUtbfFOXdyT5vA59g9wJAGsULPspPucedIf+g1TkG5Dz2jpuE5nvgNlUC07tcFIBYwkExJHu+KzwJUc2lhf0OI/5NsNg/AlehzYNAqF0g2cc2/ZngIi4pAscS6SzKw=

0 comments on commit 1572a48

Please sign in to comment.