2019-04-28 10:51:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2019-10-26 06:57:47 +00:00
|
|
|
image: golang
|
2019-04-28 10:51:06 +00:00
|
|
|
environment:
|
2019-09-11 00:18:38 +00:00
|
|
|
CGO_ENABLED: 0
|
2019-04-28 16:00:57 +00:00
|
|
|
ARN_ROOT: /drone/src
|
2019-04-28 10:51:06 +00:00
|
|
|
commands:
|
2019-10-26 07:00:38 +00:00
|
|
|
- apt-get update
|
2019-10-26 07:01:33 +00:00
|
|
|
- apt-get -y install nodejs npm make
|
2019-11-11 23:16:02 +00:00
|
|
|
- npm install -g typescript
|
2019-04-28 10:51:06 +00:00
|
|
|
- go version
|
2019-09-11 00:04:32 +00:00
|
|
|
- go mod download
|
2019-09-05 23:35:35 +00:00
|
|
|
- make tools
|
|
|
|
- make assets
|
|
|
|
- make server
|
2021-11-18 15:08:59 +00:00
|
|
|
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0
|
2019-06-05 06:45:54 +00:00
|
|
|
- golangci-lint run
|
2019-09-11 00:04:32 +00:00
|
|
|
- make db
|
2019-04-28 16:00:57 +00:00
|
|
|
- go test -v -coverprofile=coverage.txt .
|
2019-04-28 10:51:06 +00:00
|
|
|
|
|
|
|
- name: coverage
|
|
|
|
image: plugins/codecov
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: codecov-token
|
|
|
|
files:
|
|
|
|
- coverage.txt
|