Merge pull request #77 from chenrui333/add-locked-flag-to-ci

Add --locked flag to the cargo build/test
This commit is contained in:
Sunshine 2019-12-04 07:22:37 -05:00 committed by GitHub
commit 35f5e1353d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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: