-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (60 loc) · 2.42 KB
/
Makefile
File metadata and controls
89 lines (60 loc) · 2.42 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
docker-compose:
docker-compose up
docker-compose-dependencies-up:
docker-compose -f docker-compose-dependencies.yml up
docker-compose-dependencies-down:
docker-compose -f docker-compose-dependencies.yml down
liquibase-create-change-log:
./gradlew liquibaseDiffChangelog
liquibase-apply-change-log:
./gradlew migratePostgresDatabase liquibaseDiffChangelog
#applies database changes if required, and runs spring bootapp
app-run:
./gradlew clean migratePostgresDatabase bootRun
app-run-with-ai:
sudo mkdir -p /opt/app/;sudo chown $$USER /opt/app/;cp lib/* /opt/app/;./gradlew bootRun -i -DJAVA_TOOL_OPTIONS=-javaagent:/opt/app/applicationinsights-agent-2.5.1.jar
app-smoke-test:
./gradlew smoke -i
test-functional:
./gradlew clean functional -i
test-integration:
./gradlew integration -i
test-code:
./gradlew test -i
check-code:
./gradlew check -i
check-dependencies:
./gradlew dependencyCheckAggregate -i
check-coverage:
./gradlew test integration jacocoTestCoverageVerification jacocoTestReport && open build/reports/jacoco/test/html/index.html
check-all:
./gradlew test integration check dependencyCheckAggregate jacocoTestCoverageVerification jacocoTestReport && open build/reports/jacoco/test/html/index.html
#Note this fails if there is already a container.
sonarqube-run-local-sonarqube-server:
docker start sonarqube
sonarqube-fetch-and-run-sonarqube-latest-with-password-as-admin:
docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
sonarqube-run-tests-with-password-as-adminnew:
./gradlew sonarqube -Dsonar.login="admin" -Dsonar.password="adminnew" -Dsonar.host.url="http://localhost:9000/" -i && open http://localhost:9000/
report-sonarqube:
xdg-open http://localhost:9000/
report-checkstyle:
xdg-open build/reports/checkstyle/main.html
report-code-tests:
xdg-open build/reports/tests/test/index.html
report-integration-tests:
xdg-open build/reports/tests/integration/index.html
report-smoke-tests:
xdg-open build/reports/tests/smoke/index.html
report-code-pmd-main:
xdg-open build/reports/pmd/main.html
report-code-pmd-test:
xdg-open build/reports/pmd/test.html
report-code-pmd-integration-test:
xdg-open build/reports/pmd/integrationTest.html
report-code-pmd-smoke-test:
xdg-open build/reports/pmd/smokeTest.html
report-dependency-check:
xdg-open build/reports/dependency-check-report.html
report-jacoco:
xdg-open build/reports/jacoco/test/html/index.html