Commit 40a00da1 authored by Kevin Lyda's avatar Kevin Lyda 💬

Add CI bits (should fail).

parent f08d9286
Pipeline #1343 failed with stage
in 39 seconds
image: lyda/golang:1.7
test:
type: test
script:
- mkdir -p /go/src/gitlab.ie.suberic.net/kevin
- ln -s $PWD /go/src/gitlab.ie.suberic.net/kevin/sidecheck
- cd /go/src/gitlab.ie.suberic.net/kevin/sidecheck
- ./run_tests.sh
#! /bin/sh
# This can be used as a pre-commit script. Just run
# cp run_tests.sh .git/hooks/pre-commit
# and it will run before each commit.
set -xue
go list ./... | grep -v vendor/ | xargs go test
gofmt -d $(find * -type f -name '*.go' | grep -v vendor/)
go list ./... |grep -v vendor/ | xargs go vet
if ! type -f golint > /dev/null; then
go get -u github.com/golang/lint/golint
fi
go list ./... |grep -v vendor/ | xargs -L1 golint -set_exit_status
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment