-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 754 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (33 loc) · 754 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
# Check OS
ifeq ($(OS),Windows_NT)
EXE=.exe
else
EXE=
endif
BOT_OUTFILE=bin/wanductbot$(EXE)
POPULATOR_OUTFILE=bin/populator$(EXE)
bot:
go build -o $(BOT_OUTFILE) .
populator:
go build -o $(POPULATOR_OUTFILE) ./data/populator
clean:
rm -rf bin/
run: bot
$(BOT_OUTFILE)
lint:
# To install this lint tool
# See this for your operating system
# https://golangci-lint.run/usage/install/
golangci-lint run ./...
push: lint-test
# Hahahah, git in my makefile!
git push
test: reset-test
# Only build for now, may publish on docker hub and use an image.
docker-compose build
docker-compose up --abort-on-container-exit
reset-test:
docker-compose down
docker volume rm -f twitch-bot_mariadb_test_data
lint-test: lint test
all: bot populator