Created
June 4, 2020 21:29
-
-
Save rfay/aa8bd7060d9542112e7f86003d94ceca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
set -eu -o pipefail | |
if ! command -v go; then brew install golang; fi | |
if [ ! -d ./ddev/.git ]; then git clone https://github.com/drud/ddev; fi | |
pushd ddev | |
make | |
while true; do | |
docker run -t --rm -u 501:20 -v "$PWD:/workdir:delegated" -e GOPATH="/workdir/.gotmp" -e GOCACHE="//workdir/.gotmp/.cache" -e GOLANGCI_LINT_CACHE="/workdir/.gotmp/.golanci-lint-cache" -e GOFLAGS="-mod=vendor" -w /workdir drud/golang-build-container:v1.14.2 bash -c "golangci-lint run --out-format=line-number --disable-all --enable=gofmt --enable=govet --enable=golint --enable=errcheck --enable=staticcheck --enable=ineffassign --enable=varcheck --enable=deadcode ./cmd/... ./pkg/..." | |
docker run --rm -u 501:20 -v "$PWD:/workdir:delegated" -e GOCACHE="/workdir/.gotmp/.cache" -e GOLANGCI_LINT_CACHE="//workdir/.gotmp/.golanci-lint-cache" -e GOFLAGS="-mod=vendor" -w /workdir drud/golang-build-container:v1.14.2 bash -c "markdownlint *.md docs >/dev/null 2>&1" | |
date | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment