Skip to content

Commit

Permalink
add Travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwltr committed Feb 14, 2018
1 parent 78dfffc commit 5432815
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[constraint]]
branch = "v2"
name = "gopkg.in/yaml.v2"

0 comments on commit 5432815

Please sign in to comment.