Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
sidecheck
Commits
40a00da1
Commit
40a00da1
authored
Mar 09, 2017
by
Kevin Lyda
💬
Browse files
Add CI bits (should fail).
parent
f08d9286
Pipeline
#1343
failed with stage
in 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
40a00da1
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
run_tests.sh
0 → 100755
View file @
40a00da1
#! /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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment