Skip to content

Commit

Permalink
chore: add rclone link [skip tests] [skip app]
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Apr 2, 2024
1 parent 5838cea commit 429f956
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/kash
Submodule kash updated 1 files
+4 −2 kash.sh
20 changes: 15 additions & 5 deletions scripts/run_e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -euo pipefail

APP=$1
SLACK_WEBHOOK=$2
LINK=""

CURRENT_DATE=$(date +"%d-%m-%Y")

THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}")
THIS_DIR=$(dirname "$THIS_FILE")
Expand All @@ -14,15 +17,22 @@ ROOT_DIR=$(dirname "$THIS_DIR")
## Report outcome to slack
##

trap 'slack_e2e_report "$APP" "$?" "$SLACK_WEBHOOK"' EXIT
trap 'slack_e2e_report "$APP" "$?" "$SLACK_WEBHOOK" "$LINK"' EXIT

## Run tests & redirect output to a log file
##

mkdir -p "$ROOT_DIR/test/run"
yarn test:client > "$ROOT_DIR/test/run/e2e_test_log.txt" 2>&1
mkdir -p "$ROOT_DIR/test/run/chrome"
yarn test:client > "$ROOT_DIR/test/run/chrome/e2e_test_log.txt" 2>&1

# PUPPETEER_PRODUCT=firefox yarn add puppeteer
# yarn link "@kalisio/kdk" --link-folder /opt/kalisio/yarn-links
# export BROWSER="firefox"bucket
# mkdir -p "$ROOT_DIR/test/run/firefox"
# yarn test:client

## Upload logs & screenshots to S3 bucket
## Upload logs & screenshots to S3
##

#rclone copy "$ROOT_DIR/test/run" ovh:/dev/e2e_test
rclone copy "$ROOT_DIR/test/run" "ovh:/dev/$APP/e2e_tests/$CURRENT_DATE"
LINK=$(rclone link "ovh:/dev/$APP/e2e_tests/$CURRENT_DATE")

0 comments on commit 429f956

Please sign in to comment.