Skip to content

Commit bb808f8

Browse files
authored
Add test-nightly.sh (helidon-io#4278)
1 parent 95b1022 commit bb808f8

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

etc/scripts/test-nightly.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash -e
2+
#
3+
# Copyright (c) 2022 Oracle and/or its affiliates.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
# Path to this script
19+
[ -h "${0}" ] && readonly SCRIPT_PATH="$(readlink "${0}")" || readonly SCRIPT_PATH="${0}"
20+
21+
# Load pipeline environment setup and define WS_DIR
22+
. $(dirname -- "${SCRIPT_PATH}")/includes/pipeline-env.sh "${SCRIPT_PATH}" '../..'
23+
24+
# Setup error handling using default settings (defined in includes/error_handlers.sh)
25+
error_trap_setup
26+
27+
readonly MODULES_TO_BUILD="\
28+
microprofile/tests/tck/tck-fault-tolerance\
29+
"
30+
31+
cd ${WS_DIR}
32+
33+
# Do priming build
34+
mvn clean install -DskipTests
35+
36+
# Build/run tests
37+
for M in ${MODULES_TO_BUILD}; do
38+
cd "${WS_DIR}/${M}"
39+
mvn clean install
40+
done
41+
42+
echo "Completed ${MODULES_TO_BUILD}"

0 commit comments

Comments
 (0)