-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 907 Bytes
/
Makefile
File metadata and controls
48 lines (37 loc) · 907 Bytes
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
CONTAINER_NAME := "splunk"
.PHONY: docs
docs:
@make -C ./docs html
.PHONY: test
test:
@python -m pytest ./tests
.PHONY: test-unit
test-unit:
@python -m pytest ./tests/unit
.PHONY: test-integration
test-integration:
@python -m pytest ./tests/integration ./tests/system
.PHONY: docker-up
docker-up:
@docker-compose up -d
.PHONY: docker-ensure-up
docker-ensure-up:
@for i in `seq 0 180`; do \
if docker exec -it $(CONTAINER_NAME) /bin/bash -c "/sbin/checkstate.sh &> /dev/null"; then \
break; \
fi; \
printf "\rWaiting for Splunk for %s seconds..." $$i; \
sleep 1; \
done
.PHONY: docker-start
docker-start: docker-up docker-ensure-up
.PHONY: docker-down
docker-down:
@docker-compose stop
.PHONY: docker-restart
docker-restart: docker-down docker-start
.PHONY: docker-remove
docker-remove:
@docker-compose rm -f -s
.PHONY: docker-refresh
docker-refresh: docker-remove docker-start