mirror of
https://github.com/nextcloud/android.git
synced 2024-12-01 03:43:43 +03:00
8ac77c731e
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
19 lines
562 B
Bash
Executable file
19 lines
562 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
URL=https://nextcloud.kaminsky.me/remote.php/webdav/android-integrationTests
|
|
ID=$3
|
|
USER=$1
|
|
PASS=$2
|
|
TYPE=$4
|
|
|
|
if [ $TYPE = "IT" ]; then
|
|
cd build/reports/androidTests/connected/flavors/GPLAY
|
|
else
|
|
cd build/reports/tests/testGplayDebugUnitTest
|
|
fi
|
|
|
|
find . -type d -exec curl -u $USER:$PASS -X MKCOL $URL/$ID/$(echo {} | sed s#\./##) \;
|
|
find . -type f -exec curl -u $USER:$PASS -X PUT $URL/$ID/$(echo {} | sed s#\./##) --upload-file {} \;
|
|
|
|
echo "Uploaded failing tests to https://www.kaminsky.me/nc-dev/android-integrationTests/$ID"
|
|
exit 1
|