From 761eb17d3f8d95e02aa26e543e30ac14df710a6a Mon Sep 17 00:00:00 2001 From: raja Date: Thu, 14 Nov 2019 11:24:10 +0530 Subject: [PATCH] added cache, test and fixed bug in building mdbook --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c566c1a2..81d3041c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: @@ -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