Skip to content

Commit

Permalink
Added code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Apr 26, 2020
1 parent f3a1717 commit 85e4265
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -24,8 +24,12 @@ notifications:
before_script:
- go get -u golang.org/x/lint/golint

# Run scripts in parallel
# Run all scripts
script:
- golint
- go vet
- go test -short -v ./...
- go test -short -race -coverprofile=coverage.txt -covermode=atomic

# After build success
after_success:
- bash <(curl -s https://codecov.io/bash)
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -41,11 +41,11 @@ lint: ## Run the Go lint application
golint

release: ## Full production release (creates release in Github)
goreleaser --rm-dist
make godocs
goreleaser --rm-dist
make godocs

release-test: ## Full production test release (everything except deploy)
goreleaser --skip-publish --rm-dist
goreleaser --skip-publish --rm-dist

release-snap: ## Test the full release (build binaries)
goreleaser --snapshot --skip-publish --rm-dist
Expand All @@ -71,13 +71,13 @@ tag-update: ## Update an existing tag to current commit (IE: make tag-update ver
git fetch --tags -f

test: ## Runs vet, lint and ALL tests
go vet -v
golint
make vet
make lint
go test ./... -v

test-short: ## Runs vet, lint and tests (excludes integration tests)
go vet -v
golint
make vet
make lint
go test ./... -v -test.short

update: ## Update all project dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@
**go-pipl** is a simple golang wrapper to help find people using the [pipl.com API](https://pipl.com/api/).

[![Go](https://img.shields.io/github/go-mod/go-version/mrz1836/go-pipl)](https://golang.org/)
[![Build Status](https://travis-ci.com/mrz1836/go-pipl.svg?branch=master)](https://travis-ci.com/mrz1836/go-pipl)
[![Build Status](https://travis-ci.org/mrz1836/go-pipl.svg?branch=master)](https://travis-ci.org/mrz1836/go-pipl)
[![Report](https://goreportcard.com/badge/github.com/mrz1836/go-pipl?style=flat)](https://goreportcard.com/report/github.com/mrz1836/go-pipl)
[![Release](https://img.shields.io/github/release-pre/mrz1836/go-pipl.svg?style=flat)](https://github.com/mrz1836/go-pipl/releases)
[![GoDoc](https://godoc.org/github.com/mrz1836/go-pipl?status.svg&style=flat)](https://pkg.go.dev/github.com/mrz1836/go-pipl?tab=doc)
Expand Down

0 comments on commit 85e4265

Please sign in to comment.