Merge pull request #1341 from daboross/patch-1
Update example in travis section of README
This commit is contained in:
commit
30ecc5d785
12
README.md
12
README.md
@ -124,13 +124,13 @@ A minimal Travis setup could look like this:
|
||||
```yaml
|
||||
language: rust
|
||||
cache: cargo
|
||||
before_script: (cargo install rustfmt || true)
|
||||
before_script:
|
||||
- export PATH="$PATH:$HOME/.cargo/bin"
|
||||
- which rustfmt || cargo install rustfmt
|
||||
script:
|
||||
- |
|
||||
export PATH=$PATH:~/.cargo/bin &&
|
||||
cargo fmt -- --write-mode=diff &&
|
||||
cargo build &&
|
||||
cargo test
|
||||
- cargo fmt -- --write-mode=diff
|
||||
- cargo build
|
||||
- cargo test
|
||||
```
|
||||
|
||||
Note that using `cache: cargo` is optional but highly recommended to speed up the installation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user