Skip to content

Commit

Permalink
travis: ensure consistent toolchain between local and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hdhoang committed Feb 22, 2019
1 parent 8e5d104 commit 7aef8e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: rust
rust: nightly-2018-12-06
rust: nightly-2019-02-22
os:
- linux
- osx
Expand All @@ -26,6 +26,13 @@ before_install:
echo "Only docs were updated, stopping build process."
exit
fi
- |
rust_toolchain="$(cat rust-toolchain)"
travis_yml="$(grep '^rust: ' .travis.yml | head -n 1 | sed -E 's/^rust: //')"
if [[ $travis_yml != $rust_toolchain ]]; then
echo "error: the nightly version in $1 is different than the one in rust-toolchain!" 1>&2
exit 1
fi
install:
- bash ./scripts/install.sh
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2019-01-01
nightly-2019-02-22

0 comments on commit 7aef8e0

Please sign in to comment.