Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

setup Travis CI for testing #195

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: go

go:
- 1.1
- 1.4

before_script:
- FIXED=$(go fmt ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "gofmt - $FIXED file(s) not formatted correctly, please run gofmt to fix this." && exit 1; fi

script:
- go test -v ./...
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# goamz - An Amazon Library for Go

[![Build Status](https://travis-ci.org/mitchellh/goamz.svg)](https://travis-ci.org/mitchellh/goamz)

Current API documentation: [![GoDoc](https://godoc.org/github.com/mitchellh/goamz?status.svg)](https://godoc.org/github.com/mitchellh/goamz)

This is a fork of [https://launchpad.net/goamz](https://launchpad.net/goamz)
Expand Down
5 changes: 3 additions & 2 deletions elb/elb_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package elb_test

import (
"testing"

"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/elb"
"github.com/mitchellh/goamz/testutil"
. "github.com/motain/gocheck"
"testing"
)

func Test(t *testing.T) {
Expand Down Expand Up @@ -132,7 +133,7 @@ func (s *S) TestDescribeLoadBalancers(c *C) {
c.Assert(resp.LoadBalancers[0].LoadBalancerName, Equals, "MyLoadBalancer")
c.Assert(resp.LoadBalancers[0].Listeners[0].Protocol, Equals, "HTTP")
c.Assert(resp.LoadBalancers[0].Instances[0].InstanceId, Equals, "i-e4cbe38d")
c.Assert(resp.LoadBalancers[0].AvailabilityZones[0].AvailabilityZone, Equals, "us-east-1a")
c.Assert(resp.LoadBalancers[0].AvailabilityZones[0], Equals, "us-east-1a")
c.Assert(resp.LoadBalancers[0].Scheme, Equals, "internet-facing")
c.Assert(resp.LoadBalancers[0].DNSName, Equals, "MyLoadBalancer-123456789.us-east-1.elb.amazonaws.com")
c.Assert(resp.LoadBalancers[0].HealthCheck.HealthyThreshold, Equals, int64(2))
Expand Down
1 change: 0 additions & 1 deletion rds/responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ var DescribeDBParameterGroupsExample = `
</DescribeDBParameterGroupsResponse>
`


var DeleteDBParameterGroupExample = `
<DeleteDBParameterGroupResponse xmlns="http://rds.amazonaws.com/doc/2014-09-01/">
<ResponseMetadata>
Expand Down