2017-06-13 08:30:07 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail -x
|
|
|
|
|
2017-12-28 08:17:42 +00:00
|
|
|
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
|
2017-12-20 07:22:19 +00:00
|
|
|
docker build --iidfile $iidfile -f ./hack/dockerfiles/lint.Dockerfile --force-rm .
|
|
|
|
iid=$(cat $iidfile)
|
|
|
|
docker run $iid gometalinter --config=gometalinter.json ./...
|
|
|
|
rm -f $iidfile
|