diff --git a/.travis.yml b/.travis.yml index be08906..fff8ced 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: go go: - - "1.8" - - "1.9" - "1.10.x" notifications: @@ -20,4 +18,7 @@ install: - dep ensure script: - - go test -v -race -cover ./... + - go test -v -race -cover -coverprofile=coverage.txt ./... + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 13eb698..49a7fb1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# backend [![Build Status](https://travis-ci.org/eduboard/backend.svg?branch=master)](https://travis-ci.org/eduboard/backend) +# backend [![Build Status](https://travis-ci.org/eduboard/backend.svg?branch=master)](https://travis-ci.org/eduboard/backend) [![codecov](https://codecov.io/gh/eduboard/backend/branch/master/graph/badge.svg)](https://codecov.io/gh/eduboard/backend) + The backend for eduBoard, written in Go with [httprouter](https://github.com/julienschmidt/httprouter) and MongoDB. ## Installing diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..1bc0604 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,5 @@ +comment: + layout: "dfiles" + behavior: default + requires_change: false +