Skip to content

Commit

Permalink
adding coveralls to travis ci build (#200)
Browse files Browse the repository at this point in the history
* adding coveralls to travis ci build

* changing coveralls .travis.yml cmd
  • Loading branch information
magaldima authored Mar 4, 2019
1 parent cb5bb93 commit 9204aea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
language: go
go:
- "1.10"
- 1.x

before_install:
- go get github.com/mattn/goveralls

install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
Expand All @@ -10,6 +13,7 @@ install:
script:
- make all
- make test coverage
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci

deploy:
provider: releases
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ test:
go test $(shell go list ./... | grep -v /vendor/) -race -short -v

coverage:
go test -covermode=count -coverprofile=coverage.out $(shell go list ./... | grep -v /vendor/)
go tool cover -func=coverage.out
go test -covermode=count -coverprofile=profile.cov $(shell go list ./... | grep -v /vendor/)
go tool cover -func=profile.cov

clean:
-rm -rf ${CURRENT_DIR}/dist
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/argoproj/argo-events)](https://goreportcard.com/report/github.com/argoproj/argo-events)
[![slack](https://img.shields.io/badge/slack-argoproj-brightgreen.svg?logo=slack)](https://argoproj.github.io/community/join-slack)
[![Build Status](https://travis-ci.org/argoproj/argo-events.svg?branch=master)](https://travis-ci.org/argoproj/argo-events)
[![Coverage Status](https://coveralls.io/repos/github/argoproj/argo-events/badge.svg)](https://coveralls.io/github/argoproj/argo-events)

<p align="center">
<img src="https://github.com/argoproj/argo-events/blob/master/docs/assets/argo-events-logo.png?raw=true" alt="Logo"/>
Expand Down

0 comments on commit 9204aea

Please sign in to comment.