Skip to content
Snippets Groups Projects
Commit c82e7ee1 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Add codecov.io

Split runs into lint/test
Remove go 1.9 - coverage does not work with `./...` and go 1.9
parent 911a0025
Branches
No related tags found
No related merge requests found
...@@ -9,3 +9,4 @@ signing_key* ...@@ -9,3 +9,4 @@ signing_key*
http.log http.log
.idea .idea
.DS_Store .DS_Store
coverage.txt
...@@ -3,12 +3,12 @@ services: ...@@ -3,12 +3,12 @@ services:
- mysql - mysql
env: env:
- MYSQL_TEST="true" - SUITE=lint
- SUITE=test
go: go:
- 1.11.x - 1.11.x
- 1.10.x - 1.10.x
- 1.9.x
- tip - tip
matrix: matrix:
...@@ -25,4 +25,7 @@ install: ...@@ -25,4 +25,7 @@ install:
sudo: false sudo: false
script: script:
- make test - MYSQL_TEST="true" make $SUITE
after_success:
- bash <(curl -s https://codecov.io/bash)
...@@ -10,9 +10,11 @@ CGO_ENABLED ?= $(shell go env CGO_ENABLED) ...@@ -10,9 +10,11 @@ CGO_ENABLED ?= $(shell go env CGO_ENABLED)
all: test build all: test build
test: dep test:
go test ./... go test -coverprofile=coverage.txt -covermode=count ./...
go install -race $(CASHIER_CMD) $(CASHIERD_CMD) go install -race $(CASHIER_CMD) $(CASHIERD_CMD)
lint: dep
go vet ./... go vet ./...
go list ./... |xargs -L1 golint -set_exit_status go list ./... |xargs -L1 golint -set_exit_status
gofmt -s -d -l -e $(SRC_FILES) gofmt -s -d -l -e $(SRC_FILES)
...@@ -39,7 +41,6 @@ migration: ...@@ -39,7 +41,6 @@ migration:
dep: dep:
go get -u golang.org/x/lint/golint go get -u golang.org/x/lint/golint
go get -u golang.org/x/tools/cmd/goimports
version: version:
@echo $(VERSION) @echo $(VERSION)
... ...
......
...@@ -76,10 +76,10 @@ docker run -it --rm -p 10000:10000 --name cashier -v ${PWD}:/cashier nsheridan/c ...@@ -76,10 +76,10 @@ docker run -it --rm -p 10000:10000 --name cashier -v ${PWD}:/cashier nsheridan/c
# Requirements # Requirements
## Server ## Server
Go 1.9 or 1.10, though it may work with earlier versions. Go 1.10 or 1.11, though it may work with earlier versions.
## Client ## Client
- Go 1.9 or 1.10 or later, though it may work with earlier versions. - Go 1.10 or 1.11 or later, though it may work with earlier versions.
- OpenSSH 5.6 or newer. - OpenSSH 5.6 or newer.
- A working SSH agent (note that the GPG agent does not handle certificates) - A working SSH agent (note that the GPG agent does not handle certificates)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment