Skip to content

Commit

Permalink
added cache, test and fixed bug in building mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
rajasekarv committed Nov 14, 2019
1 parent db7da3a commit 761eb17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ dist: xenial
language: rust
rust:
- nightly
cache: cargo
env:
global:
- export PATH="$PATH:$HOME/bin"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/lib"
- export SPARK_LOCAL_IP=0.0.0.0
addons:
apt:
packages:
Expand All @@ -24,11 +26,11 @@ install:
script:
- cargo build
- for file in $(find userGuide -name '*.md'); do rustdoc --test $file -L ./target/debug/deps; done
- cargo doc
- cargo doc --no-deps
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo install mdbook &&
(cd book; mdbook build) &&
(cd userGuide; mdbook build) &&
ghp-import -n userGuide/book &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

0 comments on commit 761eb17

Please sign in to comment.