Skip to content

Commit

Permalink
Running go test with cover for every k6 package
Browse files Browse the repository at this point in the history
  • Loading branch information
borjacampina committed Dec 18, 2017
1 parent 4673364 commit 1af6502
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ jobs:
name: Run tests and code coverage
command: |
export PATH=$GOPATH/bin:$PATH
go get github.com/mattn/goveralls
go test -timeout 30s -cover -coverprofile=$HOME/cover.out
goveralls -service=circle-ci -coverprofile=$HOME/cover.out -repotoken=$COVERALLS_TOKEN || true
echo "mode: set" > coverage.txt
for pkg in $(go list ./... | grep -v vendor); do
go test -timeout 30s -coverprofile=$(echo $pkg | tr / -).coverage $pkg
done
grep -h -v "^mode:" *.coverage >> coverage.txt
rm -f *.coverage
bash <(curl -s https://codecov.io/bash)
- run:
name: Build application Docker image
command: |
Expand Down

0 comments on commit 1af6502

Please sign in to comment.