dist: trusty sudo: required language: - rust - cpp rust: - nightly - stable addons: apt: sources: - ubuntu-toolchain-r-test packages: - gcc-6 - g++-6 - cmake env: - CC=/usr/bin/gcc-6 CXX=/usr/bin/g++-6 install: # Install `cargo-deadlinks` unless it is currently installed. - command -v cargo-deadlinks &> /dev/null || cargo install cargo-deadlinks - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup target add wasm32-unknown-unknown; fi script: # Make sure fuzz targets are not broken. - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi # Run tests in the release mode since some of the tests from the spec # perfrom reaaally bad in the debug mode. - CARGOFLAGS=--release ./test.sh - ./doc.sh after_success: | # Build documentation and deploy it to github pages. [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && echo "" > target/doc/index.html && sudo pip install ghp-import && ghp-import -n target/doc && 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