wasmi/.travis.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2018-01-22 15:05:13 +00:00
dist: trusty
sudo: required
language:
- rust
- cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
2018-01-26 13:47:30 +00:00
install:
# Install `cargo-deadlinks` unless it is currently installed.
- command -v cargo-deadlinks &> /dev/null || cargo install cargo-deadlinks
2018-01-22 15:05:13 +00:00
script:
- export CC=/usr/bin/gcc-6
- export CXX=/usr/bin/g++-6
- cargo test --verbose
- cargo test --manifest-path=spec/Cargo.toml
2018-01-26 13:47:30 +00:00
# cargo-deadlinks will check any links in docs generated by `cargo doc`.
# This is useful as rustdoc uses raw links which is error prone.
- cargo doc && cargo deadlinks
2018-01-22 15:55:47 +00:00
after_success: |
2018-01-26 13:47:30 +00:00
# Build documentation and deploy it to github pages.
2018-01-22 15:55:47 +00:00
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
2018-01-22 17:13:38 +00:00
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo