-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunIntegrationTests.sh
More file actions
executable file
·51 lines (39 loc) · 1.47 KB
/
Copy pathrunIntegrationTests.sh
File metadata and controls
executable file
·51 lines (39 loc) · 1.47 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
49
50
#!/usr/bin/env bash
# Script that runs, liquibase, deploys wars and runs integration tests
CONTEXT_NAME=progression
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
function runLiquibase {
runEventLogLiquibase
runEventLogAggregateSnapshotLiquibase
runEventBufferLiquibase
runEventProcessorStoreLiquibase
runViewStoreLiquibase
runJobStoreLiquibase
runSystemLiquibase
runEventTrackingLiquibase
runFileServiceLiquibase
echo "All liquibase $LIQUIBASE_COMMAND scripts run"
}
function buildDeployAndTest {
loginToDockerContainerRegistry
buildWars
undeployWarsFromDocker
buildAndStartContainersWithElasticSearch
runLiquibase
deployWiremock
deployWars
healthchecks
integrationTests
}
buildDeployAndTest