Skip to content

Commit

Permalink
Merge pull request #77 from chenrui333/add-locked-flag-to-ci
Browse files Browse the repository at this point in the history
Add --locked flag to the cargo build/test
  • Loading branch information
Sunshine committed Dec 4, 2019
2 parents 31d3fee + f8040f4 commit 35f5e13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 35f5e13

Please sign in to comment.