Skip to content

Commit

Permalink
fix: travis tasks
Browse files Browse the repository at this point in the history
divide .travis.yml into each task.
  • Loading branch information
yuuichi-fujioka committed Feb 8, 2019
1 parent 1795ab1 commit 8f49130
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
25 changes: 15 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: go

go:
- "1.11.x"
- master

before_install:
jobs:
include:
- name: UT and Coverage
stage: test
script:
- go get github.com/mattn/goveralls
- go get github.com/golangci/golangci-lint/cmd/golangci-lint

script:
- export GO111MODULE=on
- go mod vendor # goberalls doesn't support go mod yet
- $GOPATH/bin/goveralls -service=travis-ci
- make test
- goveralls -coverprofile=coverage.out -service=travis-ci
go: "1.11.x"
- name: Lint
stage: test
script:
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
- export GO111MODULE=on
- go mod download
- make lint
go: "1.11.x"
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
test:
go test -v -covermode=count -coverprofile=coverage.out ./...

lint:
golangci-lint run
go test -v -race -cover ./...

0 comments on commit 8f49130

Please sign in to comment.