diff --git a/.circleci/config.yml b/.circleci/config.yml index e8b54c0..f39f3c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ -# Golang CircleCI 2.0 configuration file +# Golang CircleCI 2.1 configuration file # # Check https://circleci.com/docs/2.0/language-go/ for more details -version: 2 +version: 2.1 jobs: build: docker: @@ -9,4 +9,6 @@ jobs: working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}} steps: - checkout - - run: go test -v ./... \ No newline at end of file + - run: GO111MODULE=off go get github.com/mattn/goveralls + - run: go test -v -cover -race -coverprofile=coverage.out ./... + - run: $GOPATH/bin/goveralls -coverprofile=/home/circleci/test/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 046d839..38faea1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,4 +16,4 @@ Every change merges to master. No development is done in other branches. - Wait for CI to verify you didn't break anything - If you did, rewrite it - If CI passes, wait for manual review by repo's owner -- Your pull request will be merged into master \ No newline at end of file +- Your pull request will be merged into master diff --git a/README.md b/README.md index 382b921..8d0f786 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Parsemail - simple email parsing Go library -[![Build Status](https://circleci.com/gh/DusanKasan/parsemail.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/DusanKasan/parsemail) [![Coverage Status](https://coveralls.io/repos/github/DusanKasan/Parsemail/badge.svg?branch=master)](https://coveralls.io/github/DusanKasan/Parsemail?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/DusanKasan/parsemail)](https://goreportcard.com/report/github.com/DusanKasan/parsemail) +[![Build Status](https://circleci.com/gh/k3a/parsemail.svg?style=shield)](https://circleci.com/gh/k3a/parsemail) [![Coverage Status](https://coveralls.io/repos/github/k3a/parsemail/badge.svg?branch=master)](https://coveralls.io/github/k3a/parsemail?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/k3a/parsemail)](https://goreportcard.com/report/github.com/k3a/parsemail) + +> The [original repo](https://github.com/DusanKasan/parsemail) is unmaintained. This is an active fork replacing the original repo. Contributions are welcome. This library allows for parsing an email message into a more convenient form than the `net/mail` provides. Where the `net/mail` just gives you a map of header fields and a `io.Reader` of its body, Parsemail allows access to all the standard header fields set in [RFC5322](https://tools.ietf.org/html/rfc5322), html/text body as well as attachements/embedded content as binary streams with metadata. @@ -55,4 +57,4 @@ for _, a := range(email.EmbeddedFiles) { fmt.Println(a.ContentType) //and read a.Data } -``` \ No newline at end of file +``` diff --git a/go.mod b/go.mod index 5c9602d..f52e400 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/get-net/parsemail +module github.com/k3a/parsemail -go 1.12 \ No newline at end of file +go 1.12