-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·38 lines (37 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: go
sudo: required
go:
- 1.11
install: true
jobs:
include:
- stage: Format Checker
script: bash -x scripts/travis/formatChecker.sh
- stage: DeadCode Checker
script:
- go get -u github.com/tsenart/deadcode
- bash -x scripts/travis/deadCodeChecker.sh
- stage: Misspell Checker
script:
- go get -u github.com/client9/misspell
- bash -x scripts/travis/misspellChecker.sh
- stage: GoConst Checker
script:
- go get -u github.com/jgautheron/goconst/cmd/goconst
- bash -x scripts/travis/goConstChecker.sh
- stage: GoLint Checker
script:
- go get -u github.com/golang/lint/golint
- bash -x scripts/travis/goLintChecker.sh
- stage: GoCyclo Checker
script:
- go get github.com/fzipp/gocyclo
- bash -x scripts/travis/goCycloChecker.sh
- stage: Unit Test
script:
- go get github.com/stretchr/testify
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- GO111MODULE=on go mod download
- GO111MODULE=on go mod vendor
- bash -x scripts/travis/unit_test.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci