Skip to content
Snippets Groups Projects
Commit ddb5175a authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Add a gitlab-ci config.

parent 94ae8fd8
Branches
No related tags found
Loading
Pipeline #
image: golang:1.7
variables:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_TEST: "true"
before_script:
- go get -v github.com/golang/lint/golint
- mysql < db/seed.sql
services:
- mysql
test:
type: test
script:
- go install -v ./cmd/cashier ./cmd/cashierd
- go list ./... |grep -v vendor/ |xargs go test
- gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
- go list ./... |grep -v vendor/ |xargs go vet
- go list ./... |grep -v vendor/ |xargs -L1 golint -set_exit_status
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment