diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..61ead86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vendor diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7d36e3b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: go + +go: + - 1.9 + - master + +go_import_path: github.com/rebuy-de/rebuy-go-sdk + +before_install: +- GOFILES=$(find . -iname '*.go' -type f | grep -v /vendor/) +- GOPKGS=$(go list ./...) +- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep +- chmod +x $GOPATH/bin/dep +- go get github.com/golang/lint/golint + +install: +- dep ensure + +script: +- gofmt -l $GOFILES +- go build $GOPKGS +- go test -v $GOPKGS +- golint -set_exit_status $GOPKGS diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..88c1561 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,15 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + branch = "v2" + name = "gopkg.in/yaml.v2" + packages = ["."] + revision = "d670f9405373e636a5a2765eea47fac0c9bc91a4" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "c39e9119cc91080f9178c39214d6ca06156205351dec2523319554ee3669537e" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..af5215d --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,3 @@ +[[constraint]] + branch = "v2" + name = "gopkg.in/yaml.v2"