-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
21 lines (21 loc) · 985 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 2
jobs:
build:
working_directory: /go/src/github.com/ennoo/proc
parallelism: 1
docker:
- image: circleci/golang
steps:
- checkout
- run: go get golang.org/x/sys/unix
- run: go get golang.org/x/lint/golint # 检测语法问题
- run: go get github.com/fzipp/gocyclo # 检查函数的复杂度
- run: go get github.com/jgautheron/goconst/cmd/goconst # 查找重复的字符串
- run: go get honnef.co/go/tools/cmd/staticcheck # 静态检查
- run: go get github.com/client9/misspell/cmd/misspell # 拼写检查
- run: go get github.com/fzipp/gocyclo # 检查函数的复杂度
- run: go get github.com/go-playground/overalls # overalls能够支持到各级子目录
- run: go get github.com/mattn/goveralls # 是coveralls对golang的测试覆盖率支持命令
- run: go get github.com/smartystreets/goconvey # 测试工具
- run: go get -t -v -d ./...
- run: make checkCircle