Skip to content

Commit

Permalink
Merge pull request #66 from jgilchrist/doc-autogen
Browse files Browse the repository at this point in the history
Autogenerate docs to Github Pages
  • Loading branch information
tomassedovic committed Jan 5, 2015
2 parents 6f29c6e + 1572a48 commit 2ad0265
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 2ad0265

Please sign in to comment.