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:
parent
1a89ce317d
commit
10a3526b8e
@ -1,8 +1,7 @@
|
||||
set -e
|
||||
#!/bin/sh
|
||||
#this will hopefully download all konan dependancies that we use in the build scripts
|
||||
./gradlew --no-daemon clean
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build
|
||||
./gradlew --no-daemon clean || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
|
||||
cd sodiumWrapper
|
||||
echo "Starting mingw libsodium build"
|
||||
./configureMingw64.sh
|
||||
@ -13,8 +12,8 @@ make -j4 -C libsodium install
|
||||
echo "completed libsodium build"
|
||||
#now we can do the delegated build
|
||||
cd ..
|
||||
./gradlew --no-daemon multiplatform-crypto-delegated:build
|
||||
./gradlew --no-daemon multiplatform-crypto-delegated:build || exit 1
|
||||
#and then libsodium bindings
|
||||
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build
|
||||
set +e
|
||||
./gradlew --no-daemon multiplatform-crypto-libsodium-bindings:build || exit 1
|
||||
exit 0
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
set -e
|
||||
#!/bin/sh
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build
|
||||
./gradlew --no-daemon multiplatform-crypto:build
|
||||
set +e
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto:build || exit 1
|
||||
exit 0
|
||||
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
set -e
|
||||
#!/bin/sh
|
||||
#this will hopefully download all konan dependancies that we use in the build scripts
|
||||
./gradlew clean
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build
|
||||
./gradlew clean || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
|
||||
cd sodiumWrapper
|
||||
echo "Starting mingw libsodium build"
|
||||
./configureMingw64.sh
|
||||
@ -13,9 +12,10 @@ make -j4 -C libsodium install
|
||||
echo "completed libsodium build"
|
||||
#now we can do the delegated build
|
||||
cd ..
|
||||
./gradlew --no-daemon multiplatform-crypto-delegated:build
|
||||
./gradlew --no-daemon multiplatform-crypto-delegated:publishMingwX64PublicationToSnapshotRepository
|
||||
./gradlew --no-daemon multiplatform-crypto-delegated:build || exit 1
|
||||
./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
|
||||
|
@ -1,8 +1,7 @@
|
||||
set -e
|
||||
#!/bin/sh
|
||||
#this will hopefully download all konan dependancies that we use in the build scripts
|
||||
./gradlew clean
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build
|
||||
./gradlew --no-daemon multiplatform-crypto:build
|
||||
./gradlew --no-daemon multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository
|
||||
set +e
|
||||
./gradlew clean || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto-api:build || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto:build || exit 1
|
||||
./gradlew --no-daemon multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository || exit 1
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user