Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Version up go in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
duck8823 committed Aug 26, 2018
1 parent 377021a commit 9530aaf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ services:
language: go
go:
- tip
- "1.10"
- "1.11"

env:
- GO111MODULE=on

cache:
directories:
Expand All @@ -18,12 +21,10 @@ before_script:
- touch ~/.ssh/known_hosts
# for coverage report
- go get github.com/mattn/goveralls
# using vgo for resolve dependencies
- go get golang.org/x/vgo
script:
- vgo test -coverprofile cover.out $(vgo list ./... | grep -v mock_)
- go test -coverprofile cover.out $(go list ./... | grep -v mock_)
after_success:
- if [ "$TRAVIS_GO_VERSION" = "1.10" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
- if [ "$TRAVIS_GO_VERSION" = "1.11" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
before_deploy:
- go get all
- go get golang.org/x/sys/windows
Expand All @@ -36,4 +37,4 @@ deploy:
script: goreleaser --release-notes=release-notes.txt
on:
tags: true
condition: $TRAVIS_GO_VERSION = "1.10"
condition: $TRAVIS_GO_VERSION = "1.11"

0 comments on commit 9530aaf

Please sign in to comment.