add cover to travis
This commit is contained in:
parent
66ad19c85f
commit
290d83047b
3 changed files with 21 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.8
|
||||
- 1.9
|
||||
- 1.10
|
||||
|
||||
install: true
|
||||
|
||||
script:
|
||||
- go build -o sshpiper ./sshpiperd
|
||||
- ./sshpiper --version
|
||||
- go test ./sshpiperd
|
||||
- go build -o sshpiperd ./sshpiperd
|
||||
- ./sshpiperd --version
|
||||
- ./cover.sh
|
||||
|
|
|
|||
8
cover.sh
Executable file
8
cover.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
for pkg in $(go list ./...); do
|
||||
go test -cover $pkg;
|
||||
done
|
||||
|
||||
9
lint.sh
Executable file
9
lint.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
pkgs="./libpiper/... ./sshpiperd/..."
|
||||
|
||||
gofmt -s -l libpiper sshpiperd
|
||||
go vet $pkgs
|
||||
golint $pkgs
|
||||
Loading…
Add table
Add a link
Reference in a new issue