Setup basic development environment: make, git hooks & CI
This commit is contained in:
parent
0b2972e32a
commit
00aa120bf4
3 changed files with 18 additions and 0 deletions
1
.travis.yml
Normal file
1
.travis.yml
Normal file
|
@ -0,0 +1 @@
|
|||
language: go
|
14
Makefile
Normal file
14
Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
.PHONY: default
|
||||
default: test
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test ./... -v
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build cmd/org/*
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
git config core.hooksPath etc/githooks
|
3
etc/githooks/pre-push
Executable file
3
etc/githooks/pre-push
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
make test
|
Loading…
Add table
Add a link
Reference in a new issue