From 934e093047ae15432fcc772d4e01fdf5fd56d2fb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 3 Aug 2014 21:30:30 -0700 Subject: Put documentation on github --- .travis.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b92cce0..68735e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,15 @@ install: - - curl http://www.rust-lang.org/rustup.sh | sudo sh - +- curl http://www.rust-lang.org/rustup.sh | sudo sh - script: - - make - - make check - - cargo build --verbose - - cargo test --verbose +- cargo build --verbose +- cargo test --verbose +- rustdoc --test src/lib.rs -L target --crate-name toml +- cargo doc +after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] + && echo '''' > target/doc/index.html + && sudo pip install ghp-import && ghp-import -n target/doc && git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git + gh-pages ' env: - - LD_LIBRARY_PATH=/usr/local/lib + global: + - LD_LIBRARY_PATH: /usr/local/lib + - secure: bK8RmAtQcJvxXZFe+WqfRwuQqq1h3PXCFtrd73m4PWysdMEhtWb+ZKugPw8ykT3YVVLqbLnzH2Z8iM0RkF57aJvk7H1P4Syw4h2pPvvgP91ayzHbUnWwxkkJJ+oQ8lDJtcDHQ4BQhKMpTqY4tbaG6KeSwSdqDRCJuzHbZJzR0Eg= -- cgit v1.2.3