@@ -171,8 +171,12 @@ def linuxTesting(file, env_name, network_name, stashBuildResults) {
171171
172172 try {
173173 def libindyFeatures = " --features sodium_static"
174+ def libindyBuildFeatures = " --features \" fatal_warnings sodium_static\" "
174175
175176 echo " ${ env_name} Libindy Test: Build"
177+ sh " RUST_BACKTRACE=1 cargo build --release $libindyBuildFeatures "
178+
179+ echo " ${ env_name} Libindy Test: Build tests"
176180 sh " RUST_BACKTRACE=1 cargo test --release --no-run $libindyFeatures "
177181
178182 echo " ${ env_name} Libindy Test: Run tests"
@@ -230,23 +234,21 @@ def linuxTesting(file, env_name, network_name, stashBuildResults) {
230234 }
231235 }
232236
233- if (env_name == ' Ubuntu' ) { // TODO: Delete condition IS-702
234- sh " cp libnullpay/target/release/libnullpay.so cli"
235- sh " cp libindy/target/release/libindy.so cli"
236- dir(' cli' ) {
237- testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
238- echo " ${ env_name} Indy Cli Test: Build"
239- sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release"
237+ sh " cp libnullpay/target/release/libnullpay.so cli"
238+ sh " cp libindy/target/release/libindy.so cli"
239+ dir(' cli' ) {
240+ testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
241+ echo " ${ env_name} Indy Cli Test: Build"
242+ sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release --features fatal_warnings"
240243
241- echo " ${ env_name} Indy Cli Test: Build Tests"
242- sh ' LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo test --release --features "nullpay_plugin" --no-run'
244+ echo " ${ env_name} Indy Cli Test: Build Tests"
245+ sh ' LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo test --release --features "nullpay_plugin" --no-run'
243246
244- echo " ${ env_name} Indy Cli Test: Run tests"
245- sh ' LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release --features "nullpay_plugin"'
247+ echo " ${ env_name} Indy Cli Test: Run tests"
248+ sh ' LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release --features "nullpay_plugin"'
246249
247- if (stashBuildResults) {
248- stash includes : ' target/release/indy-cli' , name : ' IndyCliUbuntuBuildResult'
249- }
250+ if (stashBuildResults) {
251+ stash includes : ' target/release/indy-cli' , name : ' IndyCliUbuntuBuildResult'
250252 }
251253 }
252254 }
@@ -288,7 +290,7 @@ def windowsTesting() {
288290 " PATH=$WORKSPACE \\ libindy\\ prebuilt\\ lib;$PATH " ,
289291 " RUST_BACKTRACE=1"
290292 ]) {
291- bat " cargo build --release"
293+ bat " cargo build --release --features fatal_warnings "
292294 bat " cargo test --release --no-run"
293295
294296 echo " Windows Libindy Test: Run tests"
@@ -308,7 +310,7 @@ def windowsTesting() {
308310 withEnv([
309311 " RUST_BACKTRACE=1"
310312 ]) {
311- bat " cargo build --release"
313+ bat " cargo build --release --features fatal_warnings "
312314 bat " cargo test --release --no-run"
313315
314316 echo " Windows Libnullpay Test: Run tests"
@@ -336,7 +338,7 @@ def windowsTesting() {
336338 withEnv([
337339 " RUST_BACKTRACE=1"
338340 ]) {
339- bat " cargo build --release"
341+ bat " cargo build --release --features fatal_warnings "
340342
341343 echo " Windows Indy Cli Test: Build tests"
342344 bat " cargo test --release $featuresArgs --no-run"
@@ -629,7 +631,7 @@ def publishingRCtoStable() {
629631 publishLibindyCliWindowsFilesRCtoStable(libindyVersion)
630632
631633 echo ' Moving Windows RC artifacts to Stable: libnullpay'
632- publishLibnullpayWindowsFilesRCtoStable(libindyVersion )
634+ publishLibnullpayWindowsFilesRCtoStable()
633635
634636 echo ' Moving Ubuntu RC artifacts to Stable: libnullpay'
635637 publishLibnullpayDebRCtoStable(testEnv)
@@ -676,7 +678,7 @@ def publishLibindyCliDebRCtoStable(testEnv, version) {
676678
677679def publishLibnullpayDebRCtoStable (testEnv ) {
678680 def libnullpayVersion = getSrcVersion(" libnullpay" )
679- publishDebRCtoStable(testEnv, " libnullpay" , " libnullpay" , libnullpayVersion, " libindyCliDebs " , false )
681+ publishDebRCtoStable(testEnv, " libnullpay" , " libnullpay" , libnullpayVersion, " libnullpayDebs " , false )
680682}
681683
682684def publishDebRCtoStable (testEnv , packageName , folder , version , stashName , moveDevArtifacts ) {
@@ -685,7 +687,7 @@ def publishDebRCtoStable(testEnv, packageName, folder, version, stashName, moveD
685687
686688 unstash name : stashName
687689
688- sh " fakeroot deb-reversion -v $version $p ackageName /debs/\" $packageName \" _\" $rcFullVersion \" _amd64.deb"
690+ sh " fakeroot deb-reversion -v $version $f older /debs/\" $packageName \" _\" $rcFullVersion \" _amd64.deb"
689691
690692 if (moveDevArtifacts) {
691693 sh " fakeroot deb-reversion -v $version $folder /debs/\" $packageName \" -dev_\" $rcFullVersion \" _amd64.deb"
0 commit comments