-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 991 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
.DEFAULT: help
NUMBER_OF_TESTS = 10
.PHONY: help
help:
@echo 'Makefile for "holgersync" development.'
@echo ''
@echo 'Usage:'
@echo ' run-holgersync-development - Run the devolpment command for holgersync development purpose.'
@echo ' build-holgersync - Build the hoglersync application.'
@echo ' go-get-dependencies - Get the dependencies for the holgersync application.'
@echo ' clean-tests - Clean all files created by tests.'
.PHONY: run-holgersync-development
run-sync-development:
go run main.go sync --debug --log-to-file="holgersync.log" \
--config-file="./tests/holgersyncfile.yml"
.PHONY: build-holgersync
build-holgersync:
go build -o holgersync ./...
.PHONY: go-get-dependencies
go-get-dependencies:
go mod tidy
.PHONY: create-test-env
create-test-env:
sh scripts/create_test_env.sh $(NUMBER_OF_TESTS) $(GIT_USERNAME) $(GIT_PERSONAL_ACCESS_TOKEN)
.PHONY: clean-tests
clean-tests:
find -f tests/* | xargs rm -rf