Skip to content

Commit 36fa8c1

Browse files
authored
Merge pull request #7 from solidnerd/add-coverage
Add coverage for the application
2 parents 8cfed3d + a02c74c commit 36fa8c1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ before_install:
77
- curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` > docker-compose
88
- chmod +x docker-compose
99
- sudo mv docker-compose /usr/local/bin
10+
- go get github.com/mattn/goveralls
1011

1112
script:
1213
- make ci
14+
- goveralls -coverprofile=profile.cov -service=travis-ci

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GoGPAT (Go GitLab Personal Access Token)
2-
[![Build Status](https://travis-ci.org/solidnerd/gogpat.svg?branch=master)](https://travis-ci.org/solidnerd/gogpat)
2+
[![Build Status](https://travis-ci.org/solidnerd/gogpat.svg?branch=master)](https://travis-ci.org/solidnerd/gogpat)[![Coverage Status](https://coveralls.io/repos/github/solidnerd/gogpat/badge.svg?branch=master)](https://coveralls.io/github/solidnerd/gogpat?branch=master)
33

44
GoGPAT helps you to create personal access token via cli.
55

ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ do
99
sleep 10
1010
done
1111
popd
12-
go test -v ${PKG_LIST}
12+
go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ${PKG_LIST}
1313
pushd ci
1414
docker-compose down -v
1515
popd

0 commit comments

Comments
 (0)