-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunIntegrationTests.sh
More file actions
executable file
·48 lines (37 loc) · 1.41 KB
/
runIntegrationTests.sh
File metadata and controls
executable file
·48 lines (37 loc) · 1.41 KB
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
#!/usr/bin/env bash
# Script that runs, liquibase, deploys wars and runs integration tests
CONTEXT_NAME=results
FRAMEWORK_LIBRARIES_VERSION=$(mvn help:evaluate -Dexpression=framework-libraries.version -q -DforceStdout)
FRAMEWORK_VERSION=$(mvn help:evaluate -Dexpression=framework.version -q -DforceStdout)
EVENT_STORE_VERSION=$(mvn help:evaluate -Dexpression=event-store.version -q -DforceStdout)
DOCKER_CONTAINER_REGISTRY_HOST_NAME=crmdvrepo01
LIQUIBASE_COMMAND=update
#LIQUIBASE_COMMAND=dropAll
#fail script on error
set -e
[ -z "$CPP_DOCKER_DIR" ] && echo "Please export CPP_DOCKER_DIR environment variable pointing to cpp-developers-docker repo (https://github.com/hmcts/cpp-developers-docker) checked out locally" && exit 1
WILDFLY_DEPLOYMENT_DIR="$CPP_DOCKER_DIR/containers/wildfly/deployments"
source $CPP_DOCKER_DIR/docker-utility-functions.sh
source $CPP_DOCKER_DIR/build-scripts/integration-test-scipt-functions.sh
runLiquibase() {
runEventLogLiquibase
runEventLogAggregateSnapshotLiquibase
runEventBufferLiquibase
runViewStoreLiquibase
runSystemLiquibase
runEventTrackingLiquibase
runFileServiceLiquibase
printf "${CYAN}All liquibase $LIQUIBASE_COMMAND scripts run${NO_COLOUR}\n\n"
}
buildDeployAndTest() {
loginToDockerContainerRegistry
buildWars
undeployWarsFromDocker
buildAndStartContainers
runLiquibase
deployWiremock
deployWars
healthchecks
integrationTests
}
buildDeployAndTest