File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ RUN apt-get update && apt-get install -y \
1414 && curl -L https://s3-us-west-2.amazonaws.com/get-deis/shellcheck-0.4.3-linux-amd64 -o /usr/local/bin/shellcheck \
1515 && chmod +x /usr/local/bin/shellcheck \
1616 && go get -u -v \
17- github.com/golang/lint/golint \
17+ github.com/alecthomas/gometalinter \
1818 github.com/onsi/ginkgo/ginkgo \
19- github.com/mitchellh/gox
19+ github.com/mitchellh/gox \
20+ && gometalinter --install
2021
2122WORKDIR /go
2223
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Mandatory tests
4+ gometalinter --vendor --tests --deadline=20s --disable-all \
5+ --enable=gofmt \
6+ --enable=misspell \
7+ --enable=deadcode \
8+ --enable=ineffassign \
9+ --enable=gosimple \
10+ --enable=vet \
11+ ./...
12+
13+ mandatory=$?
14+
15+ # Optional tests
16+ gometalinter --vendor --tests --deadline=20s --disable-all \
17+ --enable=golint \
18+ ./...
19+
20+ exit $mandatory
You can’t perform that action at this time.
0 commit comments