Install and use gotip to test generics

This commit is contained in:
mariusor 2021-11-09 16:26:02 +01:00 committed by Marius Orcsik
parent 648b2cf097
commit 56da692c28
No known key found for this signature in database
GPG key ID: DBF5E47F5DBC4D21
2 changed files with 11 additions and 2 deletions

View file

@ -8,12 +8,20 @@ sources:
environment:
GO111MODULE: 'on'
tasks:
- install_go_tip: |
go install golang.org/dl/gotip@latest
export PATH=$PATH:$(go env GOPATH)/bin
gotip download
- tests: |
cd activitypub
go mod vendor
export PATH=$PATH:$(go env GOPATH)/bin
export GO=gotip
gotip mod tidy
make test
- coverage: |
set -a +x
export PATH=$PATH:$(go env GOPATH)/bin
export GO=gotip
cd activitypub && make coverage
GIT_SHA=$(git rev-parse --verify HEAD)
GIT_BRANCH=$(git name-rev --name-only HEAD)

View file

@ -1,4 +1,5 @@
TEST := go test
GO ?= go
TEST := $(GO) test
TEST_FLAGS ?= -v -gcflags=-G=3
TEST_TARGET ?= .
GO111MODULE = on