Skip to content

Commit

Permalink
Update travis file to support go 1.11 through 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Sep 7, 2019
1 parent 6cfc509 commit 33f689c
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
language: go
sudo: false
dist: trusty
osx_image: xcode8.3
go: 1.11.x
dist: bionic
osx_image: xcode10
go:
- 1.11.x
- 1.12.x
- 1.13.x

os:
- linux
- osx
- linux
- osx

env:
GO111MODULE=on

cache:
directories:
- node_modules
- node_modules

before_script:
- go get github.com/urfave/gfmrun/... || true
- go get golang.org/x/tools/cmd/goimports
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;
fi
- go get github.com/urfave/gfmrun/cmd/gfmrun
- go get golang.org/x/tools/cmd/goimports
- npm install markdown-toc
- go mod tidy

script:
- ./runtests gen
- ./runtests vet
- ./runtests test
- ./runtests gfmrun
- ./runtests toc
- 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)

0 comments on commit 33f689c

Please sign in to comment.