Skip to content

Commit

Permalink
Use codecov.io (#66)
Browse files Browse the repository at this point in the history
* Use codecov.io

* Fix .travis.yml

* chmod +x go.test.sh

* Add badge
  • Loading branch information
mattn authored and owulveryck committed May 22, 2019
1 parent ced8620 commit c5899d1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
language: go

sudo: false
go:
- 1.12.x

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

script:
- go test ./...
- $GOPATH/bin/goveralls -service=travis-ci -package github.com/owulveryck/onnx-go
- ./go.test.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

[![GoDoc](https://godoc.org/github.com/owulveryck/onnx-go?status.svg)](https://godoc.org/github.com/owulveryck/onnx-go) [![Go Report Card](https://goreportcard.com/badge/github.com/owulveryck/onnx-go)](https://goreportcard.com/report/github.com/owulveryck/onnx-go)
[![Build Status](https://travis-ci.com/owulveryck/onnx-go.svg?branch=master)](https://travis-ci.com/owulveryck/onnx-go)
[![Coverage Status](https://coveralls.io/repos/github/owulveryck/onnx-go/badge.svg)](https://coveralls.io/github/owulveryck/onnx-go)
[![CodeCov](https://codecov.io/gh/owulveryck/onnx-go/branch/master/graph/badge.svg)](https://codecov.io/gh/owulveryck/onnx-go)


This is a Go Interface to [Open Neural Network Exchange (ONNX)](https://onnx.ai/).

Expand Down
12 changes: 12 additions & 0 deletions go.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done

0 comments on commit c5899d1

Please sign in to comment.