@@ -86,15 +86,18 @@ jobs:
86
86
- run :
87
87
name : Install Rust
88
88
shell : bash
89
- command : curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2019-11-19
89
+ command : |
90
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2019-11-19
91
+ # see https://github.com/rust-lang/cargo/issues/2078
92
+ printf '[net]\ngit-fetch-with-cli = true\n' > "$HOME/.cargo/config"
90
93
- run :
91
94
name : Download Perl
92
95
shell : bash
93
96
command : |
94
97
VERSION=5.30.0.1
95
98
# we need to verify checksum because strawberryperl.com doesn't support HTTPS
96
99
SHA256SUM=459de13a284a4c83213208c9caa1c372c81136b6e863a3f13d42f631048e0b12
97
- curl http://strawberryperl.com/download/$VERSION/strawberry-perl-$VERSION-64bit.msi > perl-installer.msi &&
100
+ curl http://strawberryperl.com/download/$VERSION/strawberry-perl-$VERSION-64bit.msi > perl-installer.msi
98
101
echo "$SHA256SUM perl-installer.msi" | sha256sum --check --status
99
102
- run :
100
103
name : Install Perl
@@ -104,15 +107,19 @@ jobs:
104
107
del perl-installer.msi
105
108
- run :
106
109
name : Build and test
107
- shell : bash
108
- command : |
109
- RUSTFLAGS=-Ctarget-feature=+crt-static
110
- FEATURES="leveldb leveldb/leveldb-sys-3 rdkafka rdkafka/cmake_build"
111
- PATH="$HOME/.cargo/bin:$PATH"
112
- # see https://github.com/rust-lang/cargo/issues/2078
113
- printf '[net]\ngit-fetch-with-cli = true\n' > "$HOME/.cargo/config"
114
- rm rust-toolchain # to use nightly
115
- cargo test --no-default-features --features "$FEATURES"
110
+ shell : cmd.exe
111
+ command : scripts\test-msvc.bat
112
+ # - run:
113
+ # name: Build and test
114
+ # shell: bash
115
+ # command: |
116
+ # RUSTFLAGS=-Ctarget-feature=+crt-static
117
+ # FEATURES="leveldb leveldb/leveldb-sys-3 rdkafka rdkafka/cmake_build"
118
+ # PATH="$HOME/.cargo/bin:$PATH"
119
+ # # see https://github.com/rust-lang/cargo/issues/2078
120
+ # printf '[net]\ngit-fetch-with-cli = true\n' > "$HOME/.cargo/config"
121
+ # rm rust-toolchain # to use nightly
122
+ # cargo test --no-default-features --features "$FEATURES"
116
123
117
124
test-stable :
118
125
resource_class : xlarge
0 commit comments