-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
62 lines (58 loc) · 1.92 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
.PHONY : default init
define INITMESSAGE
======================================================================
run make<tab> to see a list of all possible target commands
below echos the description and example usages of all targets
make has TAB COMPLETION so you can type 'make te<tab>' and get make test for example
======================================================================
endef
export INITMESSAGE
default:
@echo "$$INITMESSAGE"
@grep 'CMD\|USAGE' Makefile | sed -e 's/"//g; s/@echo//g; /@grep/d; s/USAGE:/ USAGE:/g'
up:
@echo "CMD: make up"
@echo "USAGE: brings docker-compose up "
docker-compose up -d
sleep 3
open https://mockserver.lightningdev.com/mockserver/dashboard
reup:
@echo "CMD: make reup"
@echo "USAGE: brings up a clean copy."
docker-compose down -v
docker-compose up -d
sleep 3
open https://mockserver.lightningdev.com/mockserver/dashboard
down:
@echo "CMD: make down"
@echo "USAGE: destroys the docker containers and volumes"
docker-compose down -v
pull:
@echo "CMD: make pull"
@echo "USAGE: pulls dependent containers"
docker-compose pull
docker pull realguess/jq
ui:
@echo "CMD: make ui"
@echo "USAGE: Running to open browser to mockserver dashboard"
open https://mockserver.lightningdev.com/mockserver/dashboard
clear:
@echo "CMD: make clear"
@echo "USAGE: Clears logs from MockServer (leaves Expectations intact)"
bash ./mockserver/clearlog.sh
clear-all:
@echo "CMD: make clear-all"
@echo "USAGE: Clears all from MockServer"
bash ./mockserver/clearall.sh
expectations:
@echo "CMD: make expectations"
@echo "USAGE: Compiles expectations files into MockServer initializerJson.json"
sh ./mockserver/compileExpectations.sh
cert:
@echo "CMD: make cert"
@echo "USAGE: Updates the certificates in PHP to also include MockServer CA"
bash ./mockserver/updatecert.sh
php:
@echo "CMD: make php"
@echo "USAGE: Running to open browser to php app"
open https://mockserver.lightningdev.com/app/