Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

Commit 1269881

Browse files
Fourat ACHOURfouratachour
authored andcommitted
Rename the files that goes to google drive
1 parent f6c27cd commit 1269881

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

bin/upload.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ FIXED_BRANCH=$(echo $TRAVIS_BRANCH | sed 's/\//-/g')
44
ARCHIVE=ScreenShot-$FIXED_BRANCH-$(date +%Y-%m-%d_%H_%M_%S)-$TRAVIS_COMMIT.tar.bz2
55
DIR="test/itg/$PS_VERSION/screenshots"
66

7+
8+
echo "Creating archive $ARCHIVE_REPORTER"
9+
10+
ARCHIVE_REPORTER=$FIXED_BRANCH-$(date +%Y-%m-%d_%H_%M_%S)-$TRAVIS_COMMIT.zip
11+
12+
echo "Creating archive $ARCHIVE_REPORTER"
13+
14+
zip -r $ARCHIVE_REPORTER test/itg/$PS_VERSION/mochawesome-report/*
15+
16+
17+
./bin/gdrive-linux-x64 upload --refresh-token $GDRIVE_REFRESH_TOKEN --parent $GDRIVE_DIR "$ARCHIVE_REPORTER"
18+
19+
720
# look for empty dir
821
if [ "$(ls -A $DIR)" ]; then
922
echo "Creating archive $ARCHIVE"

0 commit comments

Comments
 (0)