-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
95 lines (65 loc) · 2.27 KB
/
Makefile
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
90
91
92
93
94
95
#!/usr/bin/make
USER_ID := $(shell id -u)
GROUP_ID := $(shell id -g)
JAVADOC_HOME := $(shell which javadoc)
export USER_ID
export GROUP_ID
export JAVADOC_HOME
build:
BUILD_TYPE="build" JAVA_VERSION="8" bash -c "docker-compose build && docker-compose run java && docker-compose down --volumes"
test:
BUILD_TYPE="test" JAVA_VERSION="$(JAVA_VERSION)" bash -c "docker-compose build && docker-compose run java && docker-compose down --volumes"
release:
BUILD_TYPE="release" JAVA_VERSION="8" bash -c "docker-compose build && docker-compose run java && docker-compose down --volumes"
demo:
bash -c "docker-compose build && docker-compose up shop"
demo-cron-fail:
docker exec mapp-intelligence-java-tracking_shop_1 /bin/bash -c "java -jar /usr/local/tomcat/temp/mapp-intelligence-java-cronjob.jar -i 111111111111111 -d q3.webtrekk.net -f /usr/local/tomcat/temp/ --debug"
demo-cron-success:
docker exec mapp-intelligence-java-tracking_shop_1 /bin/bash -c "java -jar /usr/local/tomcat/temp/mapp-intelligence-java-cronjob.jar -i 123451234512345 -d q3.webtrekk.net -f /usr/local/tomcat/temp/ --debug"
demo-log:
docker exec -it -w /usr/local/tomcat/temp/ mapp-intelligence-java-tracking_shop_1 bash
demo-ssh:
docker exec -it mapp-intelligence-java-tracking_shop_1 bash
test-all:
make test-java8 && make test-java9 && make test-java10 && make test-java11 && make test-java12 && make test-java13 && make test-java14 && make test-java15 && make test-java16 && make test-java17 && make test-java18
test-latest:
make test JAVA_VERSION=latest
test-java8:
make test JAVA_VERSION=8
test-java9:
make test JAVA_VERSION=9
test-java10:
make test JAVA_VERSION=10
test-java11:
make test JAVA_VERSION=11
test-java12:
make test JAVA_VERSION=12
test-java13:
make test JAVA_VERSION=13
test-java14:
make test JAVA_VERSION=14
test-java15:
make test JAVA_VERSION=15
test-java16:
make test JAVA_VERSION=16
test-java17:
make test JAVA_VERSION=17
test-java18:
make test JAVA_VERSION=18
####################
### next version ###
####################
test-java19:
make test JAVA_VERSION=19
test-java20:
make test JAVA_VERSION=20
test-java21:
make test JAVA_VERSION=21
test-java22:
make test JAVA_VERSION=22
test-java23:
make test JAVA_VERSION=23
test-java24:
make test JAVA_VERSION=24
.PHONY: test-all