From bf95cd3dde27a4f91753a0d3263267250c016552 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Mon, 5 Feb 2018 16:54:47 +0300 Subject: [PATCH] Travis Driven Development #1 --- .travis.yml | 7 +++++-- doc.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c9521e..6de1cb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,16 +11,19 @@ addons: - gcc-6 - g++-6 - cmake +env: +- NIGHTLY_TOOLCHAIN=nightly-2018-02-05 + install: # Install `cargo-deadlinks` unless it is currently installed. - command -v cargo-deadlinks &> /dev/null || cargo install cargo-deadlinks # Install nightly toolchain. -- rustup toolchain install nightly-2018-02-05 +- rustup toolchain install $(NIGHTLY_TOOLCHAIN) script: - export CC=/usr/bin/gcc-6 - export CXX=/usr/bin/g++-6 # Make sure fuzz targets are not broken. -- cargo +nightly check --tests --manifest-path=fuzz/Cargo.toml +- rustup run $(NIGHTLY_TOOLCHAIN) cargo check --tests --manifest-path=fuzz/Cargo.toml - ./test.sh - ./doc.sh after_success: | diff --git a/doc.sh b/doc.sh index 652db79..e86fcef 100755 --- a/doc.sh +++ b/doc.sh @@ -4,7 +4,7 @@ set -eux cd $(dirname $0) -cargo doc +rustup run $(NIGHTLY_TOOLCHAIN) cargo doc # cargo-deadlinks will check any links in docs generated by `cargo doc`. # This is useful as rustdoc uses raw links which are error prone.