Skip to content

Commit c62b759

Browse files
Merge pull request #17 from hellofresh/patch/codecov
Add codecov
2 parents 3e9eddb + 837a8ee commit c62b759

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
language: go
22
go:
3-
- "1.10.x"
4-
- "1.11.x"
3+
- 1.10.x
4+
- 1.11.x
55
- master
66
dist: xenial
77
addons:
8-
postgresql: "10"
8+
postgresql: '10'
99
cache:
1010
directories:
11-
- $HOME/gopath/pkg/mod
11+
- "$HOME/gopath/pkg/mod"
1212
env:
1313
global:
14+
- secure: KONX7893Jxeu3zBnNRWMl0x9DNsriN+RFojuFE28bDBjE2NJKTBeIhWNF4Jnoy7ba9hvE3LB7aGFUETnUR2sxKgNp/yz1Q6Wjk2qFvIPxYB8soOXWnOcRRvRulM2jOpLLJdT4aKewyTGTQfszib/3BD2fWgIgnH0aAvhoV6F/e9Mhtt1ZXLvvRDyDX2q0XkDtjK9tTB8/QOJFz6c9UI/fScYglI+Ob5lx7GwjYg6LHbIaPXt4wrGLXW9/FXOHTI1F6+FuDE08n7EtqkuEqmh3gURQRRyjmX2nDnxUuvSPpbTR6cRHctgwaYSL2gu0321lbXIUv4bFAW14MoQLnI5xKW8nFjuD0Z3DrePr3G96sTombrg2PeI0eM/twW9YgTlHpjt+gkblSriOZ8vVe1UDMZ0OidXSzO9dOk0vDustwvbA+TYP3/e7Tw60wn1NWoEFl38W8F+jB2kBuMON45AT4I5zPQAjZLmEwTgYm4jOahpnvOY3Z6cxqpN+zDNlqllETJCdf+e5bp8xk9vYZtEZ0ML3L7cMMw3IbLg+slE4rIUZuydvk4rC9EXwqPw/089BhCFhpc62GfvlVhDrPJfnHIPhzZ9nyYS1FDBl96gVNze2uFOyaEMACFtevFF4EP0NmUYRhLWPcasdjbhUjUsIiFQVS3CFQODR9FL0SXSM9M=
1415
- POSTGRES_DSN="postgres://postgres@localhost:5432/goengine?sslmode=disable&client_encoding=UTF8"
1516

1617
matrix:
@@ -27,8 +28,10 @@ before_script:
2728
- psql -U postgres -c "CREATE DATABASE goengine ENCODING 'UTF8';"
2829

2930
script:
30-
- go test -tags=unit -race ./...
31+
- go test -tags=unit -race -coverprofile=coverage.txt -covermode=atomic ./...
3132
- go test -tags=integration -race ./...
3233
- go run -race example/aggregate/*.go
3334
- go run -race example/repository/*.go
3435

36+
after_success:
37+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GoEngine [![GitHub][license-img]][license] [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci]
1+
# GoEngine [![GitHub][license-img]][license] [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Code Coverage][cov-img]][cov]
22

33
GoEngine is an Event Sourcing library written for GoLang.
44

@@ -36,6 +36,8 @@ Details are in the [contribution guide](CONTRIBUTING.md) and the [code of conduc
3636
[doc]: https://godoc.org/github.com/hellofresh/goengine
3737
[ci-img]: https://travis-ci.org/hellofresh/goengine.svg?branch=master
3838
[ci]: https://travis-ci.org/hellofresh/goengine
39+
[cov-img]: https://img.shields.io/codecov/c/github/hellofresh/goengine.svg
40+
[cov]: https://codecov.io/gh/hellofresh/goengine
3941
[license-img]: https://img.shields.io/github/license/hellofresh/goengine.svg?style=flat
4042
[license]: LICENSE
4143
[goengine-book]: https://goengine.readthedocs.io/en/latest/

0 commit comments

Comments
 (0)