2015-09-30 01:21:17 +00:00
|
|
|
.PHONY: vendor
|
2015-05-15 21:55:26 +00:00
|
|
|
|
2015-09-30 01:21:17 +00:00
|
|
|
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
2014-02-07 10:10:01 +00:00
|
|
|
|
2015-09-30 01:21:17 +00:00
|
|
|
all: gen build
|
|
|
|
|
|
|
|
deps:
|
|
|
|
go get golang.org/x/tools/cmd/cover
|
|
|
|
go get golang.org/x/tools/cmd/vet
|
|
|
|
go get -u github.com/kr/vexp
|
|
|
|
go get -u github.com/eknkc/amber/amberc
|
|
|
|
go get -u github.com/jteeuwen/go-bindata/...
|
|
|
|
go get -u github.com/elazarl/go-bindata-assetfs/...
|
2015-09-30 20:02:20 +00:00
|
|
|
go get -u github.com/dchest/jsmin
|
2015-09-30 21:06:51 +00:00
|
|
|
go get -u github.com/franela/goblin
|
2015-10-06 17:19:43 +00:00
|
|
|
go get -u github.com/go-swagger/go-swagger
|
2015-09-30 01:21:17 +00:00
|
|
|
|
2015-10-06 17:19:43 +00:00
|
|
|
gen: gen_static gen_template gen_migrations
|
|
|
|
|
|
|
|
gen_static:
|
|
|
|
mkdir -p static/docs_gen/api
|
|
|
|
go generate github.com/drone/drone/static
|
|
|
|
|
|
|
|
gen_template:
|
|
|
|
go generate github.com/drone/drone/template
|
|
|
|
|
|
|
|
gen_migrations:
|
|
|
|
go generate github.com/drone/drone/shared/database
|
2015-09-02 23:52:59 +00:00
|
|
|
|
|
|
|
build:
|
2015-09-30 21:00:48 +00:00
|
|
|
go build
|
2015-09-30 01:21:17 +00:00
|
|
|
|
|
|
|
build_static:
|
2015-09-30 21:00:48 +00:00
|
|
|
go build --ldflags '-extldflags "-static"' -o drone_static
|
2015-09-30 01:21:17 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
go test -cover $(PACKAGES)
|
|
|
|
|
|
|
|
deb:
|
|
|
|
mkdir -p contrib/debian/drone/usr/local/bin
|
|
|
|
mkdir -p contrib/debian/drone/var/lib/drone
|
|
|
|
mkdir -p contrib/debian/drone/var/cache/drone
|
|
|
|
cp drone contrib/debian/drone/usr/local/bin
|
|
|
|
-dpkg-deb --build contrib/debian/drone
|
|
|
|
|
|
|
|
vendor:
|
|
|
|
vexp
|