forked from goplus/xgo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
20 lines (20 loc) · 734 Bytes
/
Copy path.travis.yml
File metadata and controls
20 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: go
go:
- "1.14"
install:
- go get golang.org/x/tools/cmd/goimports
- go get github.com/golangci/gocyclo/cmd/gocyclo
- sudo pip --quiet install pre-commit
script:
- export GO111MODULE="on"
- go install -v ./...
# check: results of go+ and go
- gop go -test ./exec/golang/testdata
# check: format gop file
- find ./ -type f -name "*.gop"|xargs -n 1 gop fmt -w
# check: imported go package
# - diff -b <(cat lib/default.go|grep github) <(find lib -type d|grep -v "lib$"|xargs -n 1 -I file bash -c 'echo -e \\t_ \"github.com/goplus/gop/file\"'|sort)
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- pre-commit run --all
after_success:
- bash <(curl -s https://codecov.io/bash)