On windows gradle build completes successfully, but job is never completed, try to prevent that with exit 0 and exit 1 instead of set -e

This commit is contained in:
Ugljesa Jovanovic 2020-10-23 23:08:05 +02:00
parent 1a89ce317d
commit 10a3526b8e
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
4 changed files with 22 additions and 24 deletions

View File

@ -1,8 +1,7 @@
set -e
#!/bin/sh #!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts #this will hopefully download all konan dependancies that we use in the build scripts
./gradlew --no-daemon clean ./gradlew --no-daemon clean || exit 1
./gradlew --no-daemon multiplatform-crypto-api:build ./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
cd sodiumWrapper cd sodiumWrapper
echo "Starting mingw libsodium build" echo "Starting mingw libsodium build"
./configureMingw64.sh ./configureMingw64.sh
@ -13,8 +12,8 @@ make -j4 -C libsodium install
echo "completed libsodium build" echo "completed libsodium build"
#now we can do the delegated build #now we can do the delegated build
cd .. cd ..
./gradlew --no-daemon multiplatform-crypto-delegated:build ./gradlew --no-daemon multiplatform-crypto-delegated:build || exit 1
#and then libsodium bindings #and then libsodium bindings
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build ./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build || exit 1
set +e exit 0

View File

@ -1,6 +1,6 @@
set -e
#!/bin/sh #!/bin/sh
./gradlew --no-daemon multiplatform-crypto-api:build ./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
./gradlew --no-daemon multiplatform-crypto:build ./gradlew --no-daemon multiplatform-crypto:build || exit 1
set +e exit 0

View File

@ -1,8 +1,7 @@
set -e
#!/bin/sh #!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts #this will hopefully download all konan dependancies that we use in the build scripts
./gradlew clean ./gradlew clean || exit 1
./gradlew --no-daemon multiplatform-crypto-api:build ./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
cd sodiumWrapper cd sodiumWrapper
echo "Starting mingw libsodium build" echo "Starting mingw libsodium build"
./configureMingw64.sh ./configureMingw64.sh
@ -13,9 +12,10 @@ make -j4 -C libsodium install
echo "completed libsodium build" echo "completed libsodium build"
#now we can do the delegated build #now we can do the delegated build
cd .. cd ..
./gradlew --no-daemon multiplatform-crypto-delegated:build ./gradlew --no-daemon multiplatform-crypto-delegated:build || exit 1
./gradlew --no-daemon multiplatform-crypto-delegated:publishMingwX64PublicationToSnapshotRepository ./gradlew --no-daemon multiplatform-crypto-delegated:publishMingwX64PublicationToSnapshotRepository || exit 1
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build || exit 1
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:publishMingwX64PublicationToSnapshotRepository || exit 1
exit 0
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:publishMingwX64PublicationToSnapshotRepository
set +e

View File

@ -1,8 +1,7 @@
set -e
#!/bin/sh #!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts #this will hopefully download all konan dependancies that we use in the build scripts
./gradlew clean ./gradlew clean || exit 1
./gradlew --no-daemon multiplatform-crypto-api:build ./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
./gradlew --no-daemon multiplatform-crypto:build ./gradlew --no-daemon multiplatform-crypto:build || exit 1
./gradlew --no-daemon multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository ./gradlew --no-daemon multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository || exit 1
set +e exit 0