forked from kreuzwerker/envplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (19 loc) · 783 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
TOKEN = `cat .token`
REPO := envplate
USER := kreuzwerker
VERSION := "v0.0.8"
build: darwin linux
darwin:
mkdir -p out/darwin
GOOS=darwin go build -o out/darwin/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
linux:
mkdir -p out/linux
GOOS=linux go build -o out/linux/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
clean:
rm -rf out
release:
github-release release --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN)
github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-osx --file out/darwin/ep
github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-linux --file out/linux/ep
test:
DATABASE=db.example.com NULL= MODE=debug go test -cover