diff --git a/.travis.yml b/.travis.yml index 4402760..2ea99ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,9 @@ language: go go: - - 1.13 + - 1.13 +before_install: + - go get github.com/mattn/goveralls + - go get golang.org/x/tools/cmd/cover +script: + - $HOME/gopath/bin/goveralls -service=travis-ci diff --git a/README.md b/README.md index 0d8c2f4..ad7262a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![travis ci](https://api.travis-ci.org/Autodesk/go-awsecs.svg?branch=master)](https://travis-ci.org/Autodesk/go-awsecs) +[![coverage status](https://coveralls.io/repos/github/Autodesk/go-awsecs/badge.svg?branch=master)](https://coveralls.io/github/Autodesk/go-awsecs?branch=master) + Library and tools for AWS ECS operations. # contributing diff --git a/asg.go b/asg.go index 9a3e9b7..5020e98 100644 --- a/asg.go +++ b/asg.go @@ -8,7 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/cenkalti/backoff/v3" + "github.com/cenkalti/backoff" "log" "strings" "sync" diff --git a/cmd/enforce-aws-ecs-asg-launchconfig/main.go b/cmd/enforce-aws-ecs-asg-launchconfig/main.go index 62c78c2..4c873b8 100644 --- a/cmd/enforce-aws-ecs-asg-launchconfig/main.go +++ b/cmd/enforce-aws-ecs-asg-launchconfig/main.go @@ -8,7 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/autoscaling" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/cenkalti/backoff/v3" + "github.com/cenkalti/backoff" "log" ) diff --git a/cmd/update-aws-ecs-service/main.go b/cmd/update-aws-ecs-service/main.go index f8d62e3..9aa9fad 100644 --- a/cmd/update-aws-ecs-service/main.go +++ b/cmd/update-aws-ecs-service/main.go @@ -7,7 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/cenkalti/backoff/v3" + "github.com/cenkalti/backoff" "log" "os" "strings" diff --git a/ecs-alter-service.go b/ecs-alter-service.go index c06ecf9..6c84df0 100644 --- a/ecs-alter-service.go +++ b/ecs-alter-service.go @@ -4,7 +4,7 @@ import ( "errors" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/cenkalti/backoff/v3" + "github.com/cenkalti/backoff" "log" ) diff --git a/ecs.go b/ecs.go index 2ffab0d..25d225f 100644 --- a/ecs.go +++ b/ecs.go @@ -5,7 +5,7 @@ import ( "errors" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/cenkalti/backoff/v3" + "github.com/cenkalti/backoff" "log" "reflect" ) diff --git a/go.mod b/go.mod index 9899a41..2034c16 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,10 @@ go 1.13 require ( github.com/aws/aws-sdk-go v1.20.21 - github.com/cenkalti/backoff/v3 v3.1.1 + github.com/cenkalti/backoff v0.0.0-00010101000000-000000000000 github.com/sergi/go-diff v1.0.0 github.com/stretchr/testify v1.5.1 // indirect golang.org/x/net v0.0.0-20200219183655-46282727080f // indirect ) + +replace github.com/cenkalti/backoff => github.com/cenkalti/backoff/v3 v3.1.1