travis: Add rustfmt
This commit is contained in:
parent
4fc1e44f62
commit
8aa4e65856
17
.travis.yml
17
.travis.yml
|
@ -24,17 +24,16 @@ branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- which rustfmt || cargo install rustfmt
|
||||||
pip install 'travis-cargo<0.2' --user &&
|
- pip install 'travis-cargo<0.2' --user
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
- export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
|
||||||
- |
|
- mkdir $(pwd)/socket
|
||||||
mkdir $(pwd)/socket &&
|
- export XDG_RUNTIME_DIR="$(pwd)/socket"
|
||||||
export XDG_RUNTIME_DIR="$(pwd)/socket"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- cargo fmt -- --write-mode=diff
|
||||||
travis-cargo build &&
|
- travis-cargo build
|
||||||
travis-cargo --only stable doc -- --no-deps
|
- travis-cargo --only stable doc -- --no-deps
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- travis-cargo --only stable doc-upload
|
- travis-cargo --only stable doc-upload
|
||||||
|
|
Loading…
Reference in New Issue