Branch added
This commit is contained in:
parent
87bcfa54ea
commit
79a357537b
2340 changed files with 100899 additions and 37798 deletions
|
|
@ -2,12 +2,15 @@
|
|||
|
||||
# SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
# SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
||||
|
||||
upload() {
|
||||
scripts/deleteOldComments.sh "$BRANCH" "$TYPE" "$PR"
|
||||
|
||||
cd $1
|
||||
pwd
|
||||
find . -type d
|
||||
find . -type f
|
||||
|
||||
find . -type d -exec curl > /dev/null 2>&1 -u $USER:$PASS -X MKCOL $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) \;
|
||||
find . -type f -exec curl > /dev/null 2>&1 -u $USER:$PASS -X PUT $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) --upload-file {} \;
|
||||
|
|
@ -27,7 +30,6 @@ upload() {
|
|||
#5: TYPE (IT or Unit)
|
||||
#6: DRONE_PULL_REQUEST
|
||||
|
||||
URL=https://nextcloud.kaminsky.me/remote.php/webdav/android-integrationTests
|
||||
ID=$3
|
||||
USER=$1
|
||||
PASS=$2
|
||||
|
|
@ -39,6 +41,7 @@ source scripts/lib.sh
|
|||
|
||||
REMOTE_FOLDER=$ID-$TYPE-$BRANCH-$(date +%H-%M)
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
URL=https://nextcloud.kaminsky.me/remote.php/dav/files/$USER/android-integrationTests
|
||||
|
||||
set -e
|
||||
|
||||
|
|
@ -52,7 +55,7 @@ if [ $TYPE = "IT" ]; then
|
|||
elif [ $TYPE = "Unit" ]; then
|
||||
FOLDER=app/build/reports/tests/testGplayDebugUnitTest
|
||||
else
|
||||
FOLDER=app/build/reports/shot/gplay/debug/verification
|
||||
FOLDER=app/build/reports/shot/generic/debug/verification
|
||||
fi
|
||||
|
||||
if [ -e $FOLDER ]; then
|
||||
|
|
@ -77,10 +80,10 @@ else
|
|||
upload "app/build/reports/tests/testGplayDebugUnitTest"
|
||||
fi
|
||||
|
||||
if [ -e app/build/reports/shot/gplay/debug/verification ] ; then
|
||||
if [ -e app/build/reports/shot/generic/debug/verification ] ; then
|
||||
TYPE="Screenshot"
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
upload "app/build/reports/shot/gplay/debug/verification"
|
||||
upload "app/build/reports/shot/generic/debug/verification"
|
||||
fi
|
||||
|
||||
exit 1 # always fail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue