File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- ARCH=${ARCH:- x86_64}
5
- WORKING_DIRECTORY=$( pwd)
6
- SOURCE_APP=${SOURCE_APP:- " Redis-Insight-linux-$ARCH .AppImage" }
7
- RI_APP_FOLDER_NAME=" Redis-Insight-linux"
8
- TAR_NAME=" Redis-Insight-app-linux.$ARCH .tar.gz"
9
- TMP_FOLDER=" /tmp/Redis-Insight-app-$ARCH "
4
+ yarn --cwd tests/e2e install
10
5
11
- rm -rf " $TMP_FOLDER "
6
+ # mount app resources
7
+ chmod +x ./release/* .AppImage
8
+ ./release/* .AppImage --appimage-mount >> apppath &
12
9
13
- mkdir -p " $WORKING_DIRECTORY /release/redisstack"
14
- mkdir -p " $TMP_FOLDER "
10
+ # create folder before tests run to prevent permissions issue
11
+ mkdir -p tests/e2e/remote
12
+ mkdir -p tests/e2e/rdi
15
13
16
- cp " ./release/$SOURCE_APP " " $TMP_FOLDER "
17
- cd " $TMP_FOLDER " || exit 1
14
+ # run rte
15
+ docker compose -f tests/e2e/rte.docker-compose.yml build
16
+ docker compose -f tests/e2e/rte.docker-compose.yml up --force-recreate -d -V
17
+ ./tests/e2e/wait-for-redis.sh localhost 12000 && \
18
18
19
- ./" $SOURCE_APP " --appimage-extract
20
- mv squashfs-root " $RI_APP_FOLDER_NAME "
21
-
22
- tar -czvf " $TAR_NAME " " $RI_APP_FOLDER_NAME "
23
-
24
- cp " $TAR_NAME " " $WORKING_DIRECTORY /release/redisstack/"
25
- cd " $WORKING_DIRECTORY " || exit 1
19
+ # run tests
20
+ COMMON_URL=$( tail -n 1 apppath) /resources/app.asar/dist/renderer/index.html \
21
+ ELECTRON_PATH=$( tail -n 1 apppath) /redisinsight \
22
+ RI_SOCKETS_CORS=true \
23
+ yarn --cwd tests/e2e dotenv -e .desktop.env yarn --cwd tests/e2e test:desktop:ci
You can’t perform that action at this time.
0 commit comments