Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
74a7c6ba1e |
38
.drone.yml
38
.drone.yml
@ -1,27 +1,19 @@
|
|||||||
workspace:
|
kind: pipeline
|
||||||
base: /go
|
name: build yanic
|
||||||
path: src/github.com/FreifunkBremen/yanic
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
build:
|
- name: backend
|
||||||
image: golang:latest
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get ./...
|
- go get
|
||||||
- go build
|
- go build
|
||||||
codestyle:
|
- go test
|
||||||
image: golang:latest
|
|
||||||
commands:
|
|
||||||
- go get github.com/client9/misspell/cmd/misspell
|
|
||||||
- misspell -error .
|
|
||||||
- if [ -n "$(gofmt -s -l .)" ]; then echo "Go code is not formatted, run 'gofmt -s -w .'" >&2; exit 1; fi
|
|
||||||
test:
|
|
||||||
image: golang:latest
|
|
||||||
commands:
|
|
||||||
- go get github.com/stretchr/testify/assert
|
|
||||||
- go test ./... -v -cover
|
|
||||||
test-race:
|
|
||||||
image: golang:latest
|
|
||||||
commands:
|
|
||||||
- go get github.com/stretchr/testify/assert
|
|
||||||
- go test ./... -v -race
|
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: thunderstorm99/yanic
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM scratch
|
||||||
|
COPY yanic /yanic
|
||||||
|
ENTRYPOINT ["/yanic"]
|
Loading…
Reference in New Issue
Block a user