forked from rajasekarv/vega
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (35 loc) · 903 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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:
- gcc
- g++
install:
- pip install --user ghp-import
- curl -O https://capnproto.org/capnproto-c++-0.7.0.tar.gz
- tar zxf capnproto-c++-0.7.0.tar.gz
- cd capnproto-c++-0.7.0
- ./configure --prefix=$HOME
- make -j3
- make install
- cd ../
script:
- cargo build
- for file in $(find userGuide -name '*.md'); do rustdoc --test $file -L ./target/debug/deps; done
- cargo doc --no-deps
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo install mdbook &&
(cd userGuide; mdbook build) &&
ghp-import -n userGuide/book &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages