mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
Removed in go implemented tasks from Makefile
This commit is contained in:
parent
ab44a65e81
commit
d6a546a309
1 changed files with 1 additions and 35 deletions
36
Makefile
36
Makefile
|
@ -3,16 +3,6 @@
|
|||
SHA := $(shell git rev-parse --short HEAD)
|
||||
VERSION := 0.4.0-alpha
|
||||
|
||||
all: concat bindata build
|
||||
|
||||
deps:
|
||||
go get github.com/jteeuwen/go-bindata/...
|
||||
|
||||
test:
|
||||
go vet github.com/drone/drone/pkg/...
|
||||
go vet github.com/drone/drone/cmd/...
|
||||
go test -cover -short github.com/drone/drone/pkg/...
|
||||
|
||||
# Execute the database test suite against mysql 5.5
|
||||
#
|
||||
# You can launch a mysql container locally for testing:
|
||||
|
@ -22,38 +12,14 @@ test_mysql:
|
|||
TEST_DRIVER="mysql" TEST_DATASOURCE="root@tcp(127.0.0.1:3306)/test" go test -short github.com/drone/drone/pkg/store/builtin
|
||||
mysql -P 3306 --protocol=tcp -u root -e 'drop database test;'
|
||||
|
||||
build:
|
||||
go build -o bin/drone -ldflags "-X main.revision=$(SHA) -X main.version=$(VERSION).$(SHA)" github.com/drone/drone/cmd/drone-server
|
||||
go build -o bin/drone-agent -ldflags "-X main.revision=$(SHA) -X main.version=$(VERSION).$(SHA)" github.com/drone/drone/cmd/drone-agent
|
||||
|
||||
run:
|
||||
bin/drone-server --debug
|
||||
|
||||
clean:
|
||||
find . -name "*.out" -delete
|
||||
find . -name "*_bindata.go" -delete
|
||||
rm -f bin/drone*
|
||||
|
||||
concat:
|
||||
cat cmd/drone-server/static/scripts/drone.js \
|
||||
cmd/drone-server/static/scripts/services/*.js \
|
||||
cmd/drone-server/static/scripts/filters/*.js \
|
||||
cmd/drone-server/static/scripts/controllers/*.js \
|
||||
cmd/drone-server/static/scripts/term.js > cmd/drone-server/static/scripts/drone.min.js
|
||||
bin/drone --debug
|
||||
|
||||
# installs the drone binaries into bin
|
||||
install:
|
||||
install -t /usr/local/bin bin/drone
|
||||
install -t /usr/local/bin bin/drone-agent
|
||||
|
||||
# embeds all the static files directly
|
||||
# into the drone binary file
|
||||
bindata:
|
||||
$$GOPATH/bin/go-bindata -o="cmd/drone-server/drone_bindata.go" cmd/drone-server/static/...
|
||||
|
||||
bindata_debug:
|
||||
$$GOPATH/bin/go-bindata --debug -o="cmd/drone-server/drone_bindata.go" cmd/drone-server/static/...
|
||||
|
||||
docker:
|
||||
docker build --file=cmd/drone-build/Dockerfile.alpine --rm=true -t drone/drone-build .
|
||||
|
||||
|
|
Loading…
Reference in a new issue