-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 865 Bytes
/
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
CYPRESS=./node_modules/.bin/cypress
.PHONY: install
install:
@npm install
.PHONY: init
init:
@scripts/init.sh
.PHONY: start
start:
@cd fdp && docker-compose pull && docker-compose up -d
.PHONY: stop
stop:
@cd fdp && docker-compose down
.PHONY: run
run:
@CYPRESS_RETRIES=5 $(CYPRESS) run --record
# set CYPRESS_RECORD_KEY envvar (will be automatically used)
# see https://docs.cypress.io/guides/guides/continuous-integration.html#Environment-variables
.PHONY: wait
wait:
@while ! curl http://localhost:3000/actuator/health 2>/dev/null; \
do \
echo "Retrying ..."; \
sleep 2; \
done
.PHONY: open
open:
CYPRESS_RETRIES=3 $(CYPRESS) open
.PHONY: ci
ci:
make clean
make init
make start
make wait
make run
make stop
.PHONY: clean
clean:
@rm -rf output && rm -rf fdp/graphdb && rm -f fdp/docker-compose.yml && rm -rf fdp/openrefine-cfg/*.yaml