Skip to content

Commit

Permalink
Merge branch 'master' into baseline-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Harrison committed Jan 29, 2020
2 parents 668dd51 + 8b8cd47 commit a7686e0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 26 deletions.
18 changes: 1 addition & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
language: go
go:
- 1.6
- 1.7
- 1.8
- 1.9
- tip
before_script:
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
script:
- diff -u <(echo -n) <(gofmt -d -s .)
- gometalinter --disable=golint ./...
- go test -cover -bench=. -v -race ./...
notifications:
hipchat:
rooms:
secure: Tk19TNeLNQKRCGC5NKFEqCQTJsEJNrfZ56iuiA5iavIYVoTsX6Pi9VxvzYOeXNNuuHEF9yC3bnv9+yjNaBps7S+T/EiT1F7Qx4BIVgmETK+qg82XmFz5p8lWn7GmSZVWu2kBVlVMbtEdsYPbR19v1LvzSw2U9SO7j7CssWVyAmY=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
format: html

- make test
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [0.6.0] - 2018-06-04
[2018-06-04] Version 0.6.0
--------------------------
### Added
- PR [#24](https://github.com/sendgrid/smtpapi-go/pull/24): Added Code of Conduct. Big thanks to [Shivam Agarwal](https://github.com/gr8shivam) for the PR!
- PR [#26](https://github.com/sendgrid/smtpapi-go/pull/26): Added TROUBLESHOOTING.md. Big thanks to [Callam Delaney](https://github.com/cal97g) for the PR!
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: test install

install:
go get -t -v ./...

test: install
go test -race -cover -v ./...
2 changes: 1 addition & 1 deletion smtpapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// Version represents the current version of the smtpapi-go library
const Version = "0.4.2"
const Version = "0.6.2"

// SMTPAPIHeader will be used to set up X-SMTPAPI params
type SMTPAPIHeader struct {
Expand Down
7 changes: 0 additions & 7 deletions smtpapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ func exampleJson() map[string]interface{} {
return json
}

func TestSMTPAPIVersion(t *testing.T) {
t.Parallel()
if Version != "0.4.2" {
t.Error("SMTPAPI version does not match")
}
}

func TestNewSMTPIAPIHeader(t *testing.T) {
t.Parallel()
header := NewSMTPAPIHeader()
Expand Down

0 comments on commit a7686e0

Please sign in to comment.