mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 07:37:17 +03:00
This commit adds Travis-CI testing, which allows free and easy continuous integration for pull requests and new commits. It also adds a `make deps` target in the Makefile for easily adding the dependencies. It can be enabled here: http://docs.travis-ci.com/user/getting-started/#Step-one%3A-Sign-in Just follow instructions 1-2, three is already done. Thanks.
29 lines
304 B
Makefile
29 lines
304 B
Makefile
BINARY = ssh-chat
|
|
KEY = host_key
|
|
PORT = 2022
|
|
|
|
all: $(BINARY)
|
|
|
|
**/*.go:
|
|
go build ./...
|
|
|
|
$(BINARY): **/*.go *.go
|
|
go build .
|
|
|
|
deps:
|
|
go get .
|
|
|
|
build: $(BINARY)
|
|
|
|
clean:
|
|
rm $(BINARY)
|
|
|
|
$(KEY):
|
|
ssh-keygen -f $(KEY) -P ''
|
|
|
|
run: $(BINARY) $(KEY)
|
|
./$(BINARY) -i $(KEY) --bind ":$(PORT)" -vv
|
|
|
|
test:
|
|
go test .
|