Merge branch 'pr1' of ston1th/test into master
Some checks failed
the build failed

This commit is contained in:
ston1th 2018-12-24 17:22:09 +01:00 committed by Gitea
commit 434d3f037a
2 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
VERSION=${DRONE_BUILD_NUMBER} VERSION=${DRONE_BUILD_NUMBER}
CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go
CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go

View file

@ -3,22 +3,22 @@ workspace:
path: src path: src
pipeline: pipeline:
test_pr: #test_pr:
image: golang:alpine # image: golang:alpine
environment: # environment:
- CGO_ENABLED=0 # - CGO_ENABLED=0
- GOOS=linux # - GOOS=linux
commands: # commands:
- go test -cover db.go # - go test -cover db.go
- go test -cover srv.go # - go test -cover srv.go
when: # when:
event: [ push, pull_request ] # event: [ push, pull_request ]
build_pr: build_pr:
image: golang:alpine image: golang:alpine
commands: sh .drone.sh commands: sh .drone.sh
when: when:
event: [ push, pull_request ] event: pull_request
publish_srv: publish_srv:
image: plugins/docker image: plugins/docker