Skip to content

Commit 9f979d4

Browse files
committed
Add travis config
1 parent 0742fd4 commit 9f979d4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: go
2+
go:
3+
- "1.11.x"
4+
- master
5+
6+
env:
7+
- GO111MODULE=on
8+
9+
install: make setup modules
10+
11+
script: make tests tests-cover-html build

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ build: fmt vet compile ## build the application
4343
mocks: ## generate mocks for testing
4444
./scripts/mocks
4545

46-
tests: ## run all tests
46+
tests: ensure-out-dir # run all tests
4747
$(GOBIN) test $(SRC_PACKAGES) -p=1 -coverprofile ./out/coverage -v
4848

4949
tests-cover-html: ensure-out-dir ## run all tests and generates coverage report in html

0 commit comments

Comments
 (0)