mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 02:40:30 +00:00
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
.PHONY: vendor
|
|
|
|
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
|
|
|
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/...
|
|
go get -u github.com/dchest/jsmin
|
|
go get -u github.com/franela/goblin
|
|
go get -u github.com/go-swagger/go-swagger
|
|
|
|
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
|
|
|
|
build:
|
|
go build
|
|
|
|
build_static:
|
|
go build --ldflags '-extldflags "-static"' -o drone_static
|
|
|
|
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
|