-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathrun.sh
executable file
·56 lines (42 loc) · 1 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
#
# Copyright (c) 2023 Eclipse RDF4J contributors.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Distribution License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: BSD-3-Clause
#
set -e
npm install
for APP_SERVER in tomcat jetty; do
export APP_SERVER
cd ..
cd docker
./run.sh
./waitForDocker.sh
cd ..
cd e2e
sleep 10
if [ ! -d 'node_modules' ]; then
echo "npm ci"
npm ci
fi
docker ps
npx playwright install --with-deps # install browsers
npx playwright test
status_npx=$?
cd ..
cd docker
./shutdown.sh
# test for error code
if [ $status_npx -ne 0 ] ; then
echo "Error in E2E test for $APP_SERVER"
exit $status_npx
fi
echo "E2E test for $APP_SERVER OK"
# don't redo the whole build process just for making another docker image
export SKIP_BUILD="skip"
done