mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-11 19:29:16 +08:00

Moved main method to top-level cmd directory. Extracted its dockerfile as well. Signed-off-by: Dejan Mijic <dejan@mainflux.com>
26 lines
628 B
YAML
26 lines
628 B
YAML
language: go
|
|
sudo: false
|
|
go:
|
|
- 1.8.3
|
|
- 1.7.6
|
|
- 1.6.4
|
|
install:
|
|
- go get -t ./...
|
|
- go get github.com/nats-io/gnatsd
|
|
- go get github.com/mattn/goveralls
|
|
- go get github.com/wadey/gocovmerge
|
|
- go get -u honnef.co/go/tools/cmd/staticcheck
|
|
- go get -u honnef.co/go/tools/cmd/gosimple
|
|
- go get -u github.com/client9/misspell/cmd/misspell
|
|
before_script:
|
|
- go fmt ./...
|
|
- go vet ./...
|
|
- gosimple ./...
|
|
- misspell -error -locale US .
|
|
- staticcheck -ignore "$(cat staticcheck.ignore)" ./...
|
|
script:
|
|
- go test -i -race ./...
|
|
- go test -v -race ./...
|
|
after_script:
|
|
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]]; then ./scripts/cov.sh TRAVIS; fi
|