Skip to content

Commit

Permalink
gitlab-ci: Add vet to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
telyn committed Jul 29, 2016
1 parent 1939f51 commit 24f0cbb
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
image: golang:1.6
before_script:
- go get github.com/modocache/gover
- go get golang.org/x/tools/cmd/cover
- go get -t -d github.com/BytemarkHosting/bytemark-client/cmd/bytemark
- ls -l
# these two are needed for coverage stats
- go get github.com/modocache/gover golang.org/x/tools/cmd/cover
# go get the client so that we get all dependencies and test dependencies of bytemark
- go get -t -d ./cmd/bytemark ./cmd/bytemark/util ./lib
# then ensure that we don't have any github copy of bytemark-client lying around
- rm -rf $GOPATH/src/github.com/BytemarkHosting/bytemark-client
# stick our actual code in the correct place.
- cp -r . $GOPATH/src/github.com/BytemarkHosting/bytemark-client

stages:
- vet
- test

vet:
script:
- go vet github.com/BytemarkHosting/bytemark-client/cmd/bytemark
- go vet github.com/BytemarkHosting/bytemark-client/cmd/bytemark/util
- go vet github.com/BytemarkHosting/bytemark-client/lib

test:
script:
# vet everything
- go test -coverprofile=bytemark.coverprofile github.com/BytemarkHosting/bytemark-client/cmd/bytemark
- go test -coverprofile=util.coverprofile github.com/BytemarkHosting/bytemark-client/cmd/bytemark/util
- go test -coverprofile=lib.coverprofile github.com/BytemarkHosting/bytemark-client/lib
Expand Down

0 comments on commit 24f0cbb

Please sign in to comment.