File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ ENV AZCLI_VERSION=2.9.1 \
1515# This is a huge one-liner to optimize the Docker image layer.
1616# We disable source repos to speed up apt-get update.
1717RUN \
18- sed -i -e 's/^deb-src/#deb-src /' /etc/apt/sources.list && \
18+ sed -i -e 's/archive.ubuntu.com/mirrors.aliyun.com /' /etc/apt/sources.list && \
1919 export DEBIAN_FRONTEND=noninteractive && \
2020 apt-get update && \
2121 apt-get upgrade -y --no-install-recommends && \
7272 github.com/mitchellh/gox \
7373 golang.org/x/lint \
7474 && curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin $GOLANGCI_LINT_VERSION \
75- && pip3 install --disable-pip-version-check --no-cache-dir azure-cli==${AZCLI_VERSION} shyaml \
75+ && pip3 install --disable-pip-version-check --no-cache-dir \
76+ -i https://mirrors.aliyun.com/pypi/simple/ \
77+ azure-cli==${AZCLI_VERSION} shyaml \
7678 && apt-get purge --auto-remove -y libffi-dev python3-dev python3-pip \
7779 && apt-get autoremove -y \
7880 && apt-get clean -y \
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ golangci-lint --disable-all \
1212 -E=vet \
1313 -E=gofmt \
1414 -E=golint \
15+ --timeout=600s \
1516 run ./...
1617
1718exit $mandatory
Original file line number Diff line number Diff line change 33set -euo pipefail
44IFS=$' \n\t '
55
6- go test --coverage =atomic -coverprofile=coverage.txt ./...
6+ go test --covermode =atomic -coverprofile=coverage.txt ./...
You can’t perform that action at this time.
0 commit comments