Merge pull request #77 from chenrui333/add-locked-flag-to-ci
Add --locked flag to the cargo build/test
This commit is contained in:
commit
35f5e1353d
@ -9,13 +9,13 @@ os:
|
|||||||
|
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --locked --verbose
|
||||||
- cargo test --verbose
|
- cargo test --locked --verbose
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
|
6
Makefile
6
Makefile
@ -3,13 +3,13 @@
|
|||||||
all: test build
|
all: test build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@cargo build
|
@cargo build --locked
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@cargo install --force --path .
|
@cargo install --force --locked --path .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@cargo test
|
@cargo test --locked
|
||||||
@cargo fmt --all -- --check
|
@cargo fmt --all -- --check
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
Loading…
Reference in New Issue
Block a user