-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
- Loading branch information
1 parent
c8a7cfe
commit f374521
Showing
8 changed files
with
4,416 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# TEST FLEET - Docker Compose only for testing | ||
# You can test environments and stuff | ||
|
||
version: '2' | ||
|
||
volumes: | ||
settings: # Only required if using PERSISTENT flag (see below) | ||
|
||
services: | ||
|
||
browser: | ||
build: . | ||
privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse | ||
network_mode: host | ||
volumes: | ||
- 'settings:/data' # Only required if using PERSISTENT flag (see below) | ||
|
||
tests: | ||
build: tests | ||
network_mode: host | ||
restart: no | ||
depends_on: | ||
- browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ARG NODEJS_VERSION="16.19.1" | ||
|
||
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:${NODEJS_VERSION}-bullseye-run | ||
|
||
WORKDIR /usr/tests/ | ||
|
||
COPY server server | ||
COPY package* ./ | ||
RUN npm ci && install_packages jq | ||
|
||
# COPY testImage.png testImage.png | ||
|
||
# Entrypoint | ||
COPY entry.sh . | ||
CMD [ "/bin/bash", "/usr/tests/entry.sh" ] | ||
|
||
# ENTRYPOINT ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo "### TEST START $TEST_ID ###" | ||
|
||
npm run test | ||
|
||
exit=$(echo $?) | ||
|
||
echo "### TEST RESULT $TEST_ID $exit ###" |
Oops, something went wrong.