2018-11-12 16:46:35 +01:00
|
|
|
language: go
|
|
|
|
sudo: false
|
2019-10-16 22:52:29 +02:00
|
|
|
dist: bionic
|
|
|
|
osx_image: xcode10
|
|
|
|
go:
|
|
|
|
- 1.11.x
|
|
|
|
- 1.12.x
|
|
|
|
- 1.13.x
|
2018-11-12 16:46:35 +01:00
|
|
|
|
|
|
|
os:
|
2019-10-16 22:52:29 +02:00
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
env:
|
|
|
|
GO111MODULE=on
|
|
|
|
GOPROXY=https://proxy.golang.org
|
2018-11-12 16:46:35 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2019-10-16 22:52:29 +02:00
|
|
|
- node_modules
|
2018-11-12 16:46:35 +01:00
|
|
|
|
|
|
|
before_script:
|
2019-10-16 22:52:29 +02:00
|
|
|
- go get github.com/urfave/gfmrun/cmd/gfmrun
|
|
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
- npm install markdown-toc
|
|
|
|
- go mod tidy
|
2018-11-12 16:46:35 +01:00
|
|
|
|
|
|
|
script:
|
2019-10-16 22:52:29 +02:00
|
|
|
- go run build.go vet
|
|
|
|
- go run build.go test
|
|
|
|
- go run build.go gfmrun
|
|
|
|
- go run build.go toc
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|