Browse Source

trying again

Signed-off-by: Erik Hollensbe <github@hollensbe.org>
master
Erik Hollensbe 7 months ago
parent
commit
b5719c11c8
2 changed files with 21 additions and 7 deletions
  1. +17
    -0
      Makefile
  2. +4
    -7
      task.yml

+ 17
- 0
Makefile View File

@ -70,4 +70,21 @@ bench: generate
lint:
golangci-lint run -v
ci-protobuf:
apt-get update -qq && apt-get install unzip curl -y
curl -sSL -o /protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
unzip /protoc.zip -d /usr
chmod -R 755 /usr/bin/protoc /usr/include/google
# these tasks account for the standard golang container image not containing protobuf tools
ci-generate: ci-protobuf
go get -v https://github.com/golang/protobuf/protoc-gen-go@v1.22.0
go generate -v ./...
ci-test: ci-generate
go test -v -race -count 1 ./...
ci-bench: ci-generate
go test -v -bench ./... -benchtime 1m
.PHONY: test

+ 4
- 7
task.yml View File

@ -2,11 +2,8 @@
mountpoint: "/go/src/github.com/erikh/ldnsd"
runs:
test:
command: [ "make", "test" ]
image: "erikh/ldnsd:testing"
release:
command: [ "make", "release" ]
image: "erikh/ldnsd:testing"
command: [ "make", "ci-test" ]
image: "golang:1.14"
benchmark:
command: [ "make", "bench" ]
image: "erikh/ldnsd:testing"
command: [ "make", "ci-bench" ]
image: "golang:1.14"

Loading…
Cancel
Save