mdbook yaml stuff
@@ -2,16 +2,19 @@ language: rust
sudo: required
rust:
- stable
-before_script:
-- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
-- |
- travis-cargo build &&
- travis-cargo test &&
- travis-cargo bench &&
- travis-cargo doc
-after_success:
-- travis-cargo --only stable doc-upload
+- cargo build
+- cargo test
+- cargo bench
+- cargo doc
+after_success: |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ cargo install mdbook &&
+ (cd mdbook; mdbook build) &&
+ sudo pip install ghp-import &&
+ ghp-import -n mdbook/book &&
+ git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: d8tbB97FfXlLwGfzal2h/J2H7GdeR0dHBznqPfb/VxNPHevLJPtkD1Tnsqcs0/9w4piqmbKDzVWPAUXCA5Pg1e3f3pBqmgi12SYvzcFIHI1LLLbjF144S9vNNXhXc0IQE0bnaadX24A1JgRmmJJRt28qZnPxcCNdSJfrqV95h9Q=
