Skip to content

Commit

Permalink
Merge pull request #372 from asomers/msrv
Browse files Browse the repository at this point in the history
Don't run the tests on the MSRV in CI
  • Loading branch information
asomers committed Mar 21, 2022
2 parents 0fb6367 + a4ac8d3 commit 94f62cd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 16 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,37 @@ common: &COMMON
folder: $HOME/.cargo/registry
build_script:
- cargo build $CARGO_ARGS
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
doc_script:
- cargo doc $CARGO_ARGS --no-deps


task:
matrix:
- name: 1.42.0
container:
image: rust:1.42.0
- name: stable
container:
image: rust:latest
name: MSRV
container:
image: rust:1.42.0
<< : *COMMON
before_cache_script: rm -rf $CARGO_HOME/registry/index

task:
name: stable
container:
image: rust:latest
<< : *COMMON
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
before_cache_script: rm -rf $CARGO_HOME/registry/index

task:
name: nightly
container:
image: rustlang/rust:nightly
env:
CARGO_ARGS: --all-features
<< : *COMMON
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
lint_script:
- rustup component add clippy
- cargo clippy $CARGO_ARGS --all-targets --workspace -- -D warnings
Expand Down
2 changes: 1 addition & 1 deletion mockall_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ nightly_derive = ["proc-macro2/nightly"]
cfg-if = "1.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.15", features = ["extra-traits", "full"] }
syn = { version = "1.0.87", features = ["extra-traits", "full"] }

[dev-dependencies]
pretty_assertions = "0.7"

0 comments on commit 94f62cd

Please sign in to comment.