-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (30 loc) · 883 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
.PHONY: start-services
start-services:
docker-compose up -d
.PHONY: stop-services
stop-services:
docker-compose down
.PHONY: wait-for-cluster-1
wait-for-cluster-1:
./scripts/wait-for-cluster-ready.sh cluster-1-node-0 2
.PHONY: wait-for-cluster-2
wait-for-cluster-2:
./scripts/wait-for-cluster-ready.sh cluster-2-node-0 2
.PHONY: wait-for-cluster-3
wait-for-cluster-3:
./scripts/wait-for-cluster-ready.sh cluster-3-node-0 1
.PHONY: wait-for-reaper
wait-for-reaper:
./scripts/wait-for-reaper-ready.sh
.PHONY: test
test:
@echo Running tests:
go test -v -race -cover -timeout 30m ./reaper/...
.PHONY: test-cleanup
test-cleanup:
@echo Running test-cleanup
rm -rf data/cassandra
rm -rf data/reaper
.PHONY: publish-release
publish-release:
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -debug -replace ${CIRCLE_TAG}