Skip to content

Commit e6257d4

Browse files
committed
Merge before and script
Signed-off-by: Ana Hobden <[email protected]>
1 parent 751995b commit e6257d4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ env:
1313
global:
1414
- RUST_BACKTRACE=1
1515
- RUSTFLAGS="-D warnings"
16-
- PD_ADDR="127.0.0.1:2379"
17-
- TIKV_ADDR="127.0.0.1:2378"
1816

1917
install:
2018
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then rustup component add rustfmt; fi
@@ -23,13 +21,10 @@ install:
2321
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then choco install cmake; fi
2422
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then export PATH="$PATH:/c/Go/bin/:/c/Program Files/CMake/bin"; fi
2523

26-
27-
before_script:
24+
script:
2825
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo fmt -- --check; fi
2926
# Currently some crates have lint errors if clippy checks them.
3027
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo clippy -- -D clippy::all; fi
31-
32-
script:
3328
- cargo test --all -- --nocapture
3429
# We need to switch the daemon of Windows to use Linux docker containers.
3530
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then "/c/Program Files/Docker/Docker/DockerCli.exe" -SwitchDaemon .; fi

0 commit comments

Comments
 (0)