Skip to content

Commit c266492

Browse files
committed
Correct switchdaemon
Signed-off-by: Ana Hobden <operator@hoverbear.org>
1 parent 27205d7 commit c266492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ install:
2727
before_script:
2828
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo fmt -- --check; fi
2929
# Currently some crates have lint errors if clippy checks them.
30-
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo build && cargo clippy -- -D clippy::all; fi
30+
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo clippy -- -D clippy::all; fi
3131

3232
script:
3333
- cargo test
3434
# We need to switch the daemon of Windows to use Linux docker containers.
35-
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then docker -switchDaemon; fi
35+
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then "/c/Program Files/Docker/Docker/DockerCli.exe" -SwitchDaemon .; fi
3636
# OS X can't do docker on travis. :(
3737
- if [[ $TRAVIS_OS_NAME != "osx" ]]; then docker run -d --net=host --name pd --rm pingcap/pd --name "pd" --data-dir "pd" --client-urls "http://127.0.0.1:2379" --advertise-client-urls "http://127.0.0.1:2379"; fi
3838
- if [[ $TRAVIS_OS_NAME != "osx" ]]; then docker run -d --net=host --name kv --rm --ulimit nofile=90000:90000 pingcap/tikv --pd-endpoints "127.0.0.1:2379" --addr "127.0.0.1:2378" --data-dir "kv"; fi

0 commit comments

Comments
 (0)