/
build-and-ut.sh
executable file
·28 lines (22 loc) · 1.16 KB
/
build-and-ut.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
#!/bin/bash
#
# This script automates the building and testing of the application.
#
# Copyright (c) 2023 Open Technologies for Integration
# Licensed under the MIT license (see LICENSE for details)
#
# Exit on any failure
set -e
# Move submodule projects to the correct level to be picked up by ibmint
find ace* -name ".project" -exec dirname {} ";" | xargs -n1 -i{} echo mv {} . | grep -v Test | grep -v Scaffold > /tmp/move-projects.sh || /bin/true
bash /tmp/move-projects.sh
# Create the work directory
rm -rf /tmp/ace-submodule-app1-work-dir junit-reports
mqsicreateworkdir /tmp/ace-submodule-app1-work-dir
# Build everything; we can do this in this case because we want to include the unit
# tests, but production builds should specify the projects.
ibmint deploy --input-path . --output-work-directory /tmp/ace-submodule-app1-work-dir
# ibmint optimize server new for v12.0.4 - speed up test runs
ibmint optimize server --work-directory /tmp/ace-submodule-app1-work-dir --enable JVM --disable NodeJS
# Run the server to run the unit tests
IntegrationServer -w /tmp/ace-submodule-app1-work-dir --test-project App1_UnitTest --test-junit-options "--reports-dir=junit-reports"