Skip to content

Commit

Permalink
upgrade version_check to 0.9 (#83)
Browse files Browse the repository at this point in the history
* upgrade version_check to 0.9
* tarpaulin changes
  • Loading branch information
AnderEnder committed May 29, 2019
1 parent 8e03371 commit d5022b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ matrix:
- docker
script:
- cargo clean
- docker run --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin:develop sh -c "cargo tarpaulin -v -f -t10 --out Xml"
- docker run --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin sh -c "cargo tarpaulin -v -f --out Xml"
- bash <(curl -s https://codecov.io/bash)
before_deploy:
deploy:
Expand Down
6 changes: 3 additions & 3 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tempfile = "3"
remove_dir_all = "0.5"

[build-dependencies]
version_check = "0.1"
version_check = "0.9"
structopt = "0.2"
clap = "2"
glob = "0.3"
Expand Down
11 changes: 3 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ use structopt::clap::Shell;
include!("src/arg.rs");

fn main() {
match version_check::is_min_version("1.31") {
// rustc >= 1.30
Some((true, _)) => {}
// rustc < 1.20 or can't figure it out
_ => {
writeln!(&mut io::stderr(), "This crate requires rustc >= 1.31").unwrap();
exit(1);
}
if !version_check::is_min_version("1.31").unwrap_or(false) {
writeln!(&mut io::stderr(), "This crate requires rustc >= 1.31").unwrap();
exit(1);
}

let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
Expand Down

0 comments on commit d5022b1

Please sign in to comment.