added tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sebastian Frank
2019-03-19 21:25:14 +01:00
parent 3c87da15e1
commit 5cc4b9d001
4 changed files with 89 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ workspace:
path: src/gitbase.de/apairon/mark2web
steps:
- name: build for linux
- name: test
image: golang:latest
environment:
CGO_ENABLED: 0
@@ -15,6 +15,17 @@ steps:
commands:
- git submodule update --init --recursive
- git fetch --tags
- go test -v -coverprofile coverage.out ./pkg/*
when:
event: [ push, tag ]
- name: build for linux
image: golang:latest
environment:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
commands:
- scripts/build.sh
when:
event: [ push, tag ]