Add --locked flag to the cargo build/test

pull/77/head
Rui Chen 5 years ago
parent 31d3fee626
commit f8040f4d8c

@ -9,13 +9,13 @@ os:
rust:
- stable
- beta
- beta
- nightly
before_script:
- rustup component add rustfmt
script:
- cargo build --verbose
- cargo test --verbose
- cargo build --locked --verbose
- cargo test --locked --verbose
- cargo fmt --all -- --check

@ -3,13 +3,13 @@
all: test build
build:
@cargo build
@cargo build --locked
install:
@cargo install --force --path .
@cargo install --force --locked --path .
test:
@cargo test
@cargo test --locked
@cargo fmt --all -- --check
lint:

Loading…
Cancel
Save