Use fixed nightly rust version
@@ -4,9 +4,13 @@ rust:
cache: cargo
sudo: required
dist: trusty
+env:
+ global:
+ - NIGHTLY_RUST=nightly-2017-05-10
before_install:
- which rustfmt || cargo install rustfmt --vers 0.8.4
-- which cargo-clippy || rustup toolchain install nightly && cargo +nightly install clippy --force --vers 0.0.131
+- rustup toolchain install $NIGHTLY_RUST
+- which cargo-clippy || cargo +$NIGHTLY_RUST install clippy --force --vers 0.0.131
- sudo add-apt-repository -y ppa:chris-lea/libsodium
- sudo apt-get -qq update
install:
@@ -14,7 +18,7 @@ install:
script:
- cargo fmt -p blockchain_explorer -- --write-mode=diff
- cargo fmt -p sandbox -- --write-mode=diff
-- cd exonum; cargo +nightly clippy -- -D warnings; cd ..
+- cd exonum; cargo +$NIGHTLY_RUST clippy -- -D warnings; cd ..
- cargo rustc --manifest-path blockchain_explorer/Cargo.toml --lib -- -D warnings
- cargo build --manifest-path sandbox/Cargo.toml
- cargo build --release --manifest-path blockchain_explorer/Cargo.toml
