@@ -45,7 +45,7 @@ def windowsTesting() {
4545 " PATH=$WORKSPACE \\ libindy\\ prebuilt\\ lib;$PATH " ,
4646 " RUST_BACKTRACE=1"
4747 ]) {
48- bat " cargo build"
48+ bat " cargo build --features fatal_warnings "
4949 bat " cargo test --no-run"
5050
5151 echo " Windows Libindy Test: Run tests"
@@ -64,7 +64,7 @@ def windowsTesting() {
6464 withEnv([
6565 " RUST_BACKTRACE=1"
6666 ]) {
67- bat " cargo build"
67+ bat " cargo build --features fatal_warnings "
6868 bat " cargo test --no-run"
6969
7070 echo " Windows Libnullpay Test: Run tests"
@@ -133,7 +133,7 @@ def macosTesting() {
133133 echo " MacOS Test: Build"
134134 setupRust()
135135 setupBrewPackages()
136- sh " cargo build"
136+ sh " cargo build --features fatal_warnings "
137137 sh " cargo test --no-run"
138138 // TODO testing
139139 }
@@ -226,15 +226,15 @@ def linuxTesting(file, env_name, network_name) {
226226 poolInst = openPool(env_name, network_name)
227227
228228 def testEnv
229- def libindyFeatures = " --features sodium_static"
229+ def additionalFeatures = " sodium_static"
230230
231231 dir(' libindy' ) {
232232 echo " ${ env_name} Libindy Test: Build docker image"
233233 testEnv = dockerBuild(' libindy' , file)
234234
235235 testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
236236 echo " ${ env_name} Libindy Test: Build"
237- sh " cargo build $l ibindyFeatures "
237+ sh " cargo build --features \" fatal_warnings $a dditionalFeatures \" "
238238 }
239239 }
240240
@@ -249,7 +249,7 @@ def linuxTesting(file, env_name, network_name) {
249249
250250 testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
251251 echo " ${ env_name} Libnullpay Test: Build"
252- sh " LIBRARY_PATH=./ cargo build"
252+ sh " LIBRARY_PATH=./ cargo build --features fatal_warnings "
253253 }
254254 }
255255
@@ -268,10 +268,10 @@ def linuxTesting(file, env_name, network_name) {
268268 echo " ${ env_name} Libindy Test: Test"
269269
270270 echo " ${ env_name} Libindy Test: Build Test"
271- sh " RUST_BACKTRACE=1 cargo test --no-run $l ibindyFeatures "
271+ sh " RUST_BACKTRACE=1 cargo test --no-run --features $a dditionalFeatures "
272272
273273 echo " ${ env_name} Libindy Test: Run tests"
274- sh " RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test $l ibindyFeatures "
274+ sh " RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --features $a dditionalFeatures "
275275 }
276276 }
277277 },
0 commit comments