-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
31 lines (21 loc) · 806 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
.PHONY: install lint test test-cover build deploy-dev deploy-prod
setup:
go get -v -t `go list ./... | grep newsbot`
go get github.com/jstemmer/go-junit-report
lint: setup
go vet -v `go list ./... | grep newsbot`
test: lint
go test -v -coverprofile=./test-reports/cover.out `go list ./... | grep newsbot/`
test-cover: lint
mkdir -pv ./test-reports
go test -v -coverprofile=./test-reports/cover.out `go list ./... | grep newsbot/` 2>&1 | tee go-junit-report > ./test-reports/junit.xml
build: lint
go install newsbot
build-docker:
bash -c "source ./deploy/vars.sh dev && ./deploy/image.sh"
dev:
bash -c "source ./deploy/vars.sh dev && ./deploy/deploy.sh"
tag:
bash -c "source ./deploy/vars.sh prod && ./deploy/tag.sh"
release:
bash -c "source ./deploy/vars.sh prod && ./deploy/deploy.sh"