mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-12 23:27:17 +03:00
Fix testing in travisci.
This commit is contained in:
parent
f0db74c874
commit
385340af8a
28
.travis.yml
28
.travis.yml
@ -1,15 +1,25 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
install:
|
language: go
|
||||||
- export PATH=$PATH:$HOME/gopath/bin
|
|
||||||
- make deps
|
|
||||||
|
|
||||||
script:
|
|
||||||
# TODO: Bring this back: - fgt golint
|
|
||||||
- make test
|
|
||||||
|
|
||||||
go:
|
go:
|
||||||
|
- 1.6.2
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go get -t ./...
|
||||||
|
- go get github.com/golang/lint/golint
|
||||||
|
- go get github.com/gordonklaus/ineffassign
|
||||||
|
|
||||||
|
script:
|
||||||
|
- diff <(echo -n) <(gofmt -s -d .)
|
||||||
|
- ineffassign .
|
||||||
|
- go vet ./...
|
||||||
|
- go test $(go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- golint ./...
|
||||||
|
4
Makefile
4
Makefile
@ -6,6 +6,8 @@ SRCS = %.go
|
|||||||
VERSION := $(shell git describe --tags --dirty --always)
|
VERSION := $(shell git describe --tags --dirty --always)
|
||||||
LDFLAGS = LDFLAGS="-X main.Version=$(VERSION)"
|
LDFLAGS = LDFLAGS="-X main.Version=$(VERSION)"
|
||||||
|
|
||||||
|
SUBPACKAGES := $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
all: $(BINARY)
|
all: $(BINARY)
|
||||||
|
|
||||||
$(BINARY): deps **/**/*.go **/*.go *.go
|
$(BINARY): deps **/**/*.go **/*.go *.go
|
||||||
@ -29,7 +31,7 @@ debug: $(BINARY) $(KEY)
|
|||||||
./$(BINARY) --pprof 6060 -i $(KEY) --bind ":$(PORT)" -vv
|
./$(BINARY) --pprof 6060 -i $(KEY) --bind ":$(PORT)" -vv
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -v ./...
|
go test -v $(SUBPACKAGES)
|
||||||
|
|
||||||
release:
|
release:
|
||||||
GOOS=linux GOARCH=arm GOARM=6 $(LDFLAGS) ./build_release "github.com/shazow/ssh-chat/cmd/ssh-chat" README.md LICENSE
|
GOOS=linux GOARCH=arm GOARM=6 $(LDFLAGS) ./build_release "github.com/shazow/ssh-chat/cmd/ssh-chat" README.md LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user