Skip to content

Commit

Permalink
Merge pull request #33 from seqsense/fix-gomod-version-dir
Browse files Browse the repository at this point in the history
Support go modules version directory
  • Loading branch information
at-wat authored Mar 11, 2019
2 parents ee148b6 + 4d46f5e commit a86ad56
Show file tree
Hide file tree
Showing 30 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ env:
global:
- REVIEW_DOG_ON=1.11
- REVIEW_DOG_VERSION=0.9.11
- VERSION_DIR=v2

branches:
only:
- master

install:
- cd ${TRAVIS_BUILD_DIR}/${VERSION_DIR}
- |
if [ ${TRAVIS_GO_VERSION} == ${REVIEW_DOG_ON} ]; then
mkdir -p ${GOPATH}/bin
Expand All @@ -26,6 +28,7 @@ install:
fi
- go get -t ./...
script:
- cd ${TRAVIS_BUILD_DIR}/${VERSION_DIR}
- go build
- |
if [[ ! ${TRAVIS_GO_VERSION} =~ ^1\.(8|9)(\.[0-9]+){0,1}$ ]]
Expand All @@ -38,9 +41,11 @@ script:
- go vet ./...
- |
if [ ${TRAVIS_GO_VERSION} == ${REVIEW_DOG_ON} ]; then
cd ${TRAVIS_BUILD_DIR}
golint ./... | reviewdog -f=golint -reporter=github-pr-review
fi
after_success:
- cd ${TRAVIS_BUILD_DIR}/${VERSION_DIR}
- |
if [[ ${REPORT_COVERAGE} == 1 ]]
then
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions connection.go → v2/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package awsiotdev
import (
"time"

"github.com/seqsense/aws-iot-device-sdk-go/pubqueue"
"github.com/seqsense/aws-iot-device-sdk-go/subqueue"
"github.com/seqsense/aws-iot-device-sdk-go/v2/pubqueue"
"github.com/seqsense/aws-iot-device-sdk-go/v2/subqueue"
)

type pubSubQueues struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions device.go → v2/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

mqtt "github.com/eclipse/paho.mqtt.golang"

"github.com/seqsense/aws-iot-device-sdk-go/awsiotprotocol"
"github.com/seqsense/aws-iot-device-sdk-go/pubqueue"
"github.com/seqsense/aws-iot-device-sdk-go/subqueue"
"github.com/seqsense/aws-iot-device-sdk-go/v2/awsiotprotocol"
"github.com/seqsense/aws-iot-device-sdk-go/v2/pubqueue"
"github.com/seqsense/aws-iot-device-sdk-go/v2/subqueue"
)

const (
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion go.mod → v2/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/seqsense/aws-iot-device-sdk-go
module github.com/seqsense/aws-iot-device-sdk-go/v2

require (
github.com/aws/aws-sdk-go v1.15.68
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sample/main.go → v2/sample/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

mqtt "github.com/eclipse/paho.mqtt.golang"

awsiot "github.com/seqsense/aws-iot-device-sdk-go"
awsiot "github.com/seqsense/aws-iot-device-sdk-go/v2"
)

var message mqtt.MessageHandler = func(client mqtt.Client, msg mqtt.Message) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a86ad56

Please sign in to comment.