Merge pull request #12802 from hexfusion/test-bump-release-3.2

test: bump golang to 1.12.17 for travis
This commit is contained in:
Sam Batschelet 2021-03-28 19:01:21 -04:00 committed by GitHub
commit 333b9f2656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View File

@ -6,12 +6,15 @@ sudo: required
services: docker services: docker
go: go:
- 1.8.7 - 1.12.17
notifications: notifications:
on_success: never on_success: never
on_failure: never on_failure: never
env:
- GO111MODULE=off
env: env:
matrix: matrix:
- TARGET=linux-amd64-integration - TARGET=linux-amd64-integration
@ -23,7 +26,7 @@ env:
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- go: 1.8.7 - go: 1.12.17
env: TARGET=linux-386-unit env: TARGET=linux-386-unit
exclude: exclude:
- go: tip - go: tip

View File

@ -1,4 +1,4 @@
FROM ubuntu:16.10 FROM ubuntu:16.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
@ -29,6 +29,7 @@ RUN apt-get -y update \
&& apt-get -y autoremove \ && apt-get -y autoremove \
&& apt-get -y autoclean && apt-get -y autoclean
ENV GO111MODULE=off
ENV GOROOT /usr/local/go ENV GOROOT /usr/local/go
ENV GOPATH /go ENV GOPATH /go
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH} ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
@ -46,11 +47,18 @@ ADD ./scripts/install-marker.sh /tmp/install-marker.sh
RUN go get -v -u -tags spell github.com/chzchzchz/goword \ RUN go get -v -u -tags spell github.com/chzchzchz/goword \
&& go get -v -u github.com/coreos/license-bill-of-materials \ && go get -v -u github.com/coreos/license-bill-of-materials \
&& go get -v -u honnef.co/go/tools/cmd/gosimple \
&& go get -v -u honnef.co/go/tools/cmd/unused \
&& go get -v -u honnef.co/go/tools/cmd/staticcheck \
&& go get -v -u github.com/wadey/gocovmerge \ && go get -v -u github.com/wadey/gocovmerge \
&& go get -v -u github.com/gordonklaus/ineffassign \ && go get -v -u github.com/gordonklaus/ineffassign \
&& mkdir -p $GOPATH/src/honnef.co/go/tools \
&& git clone https://github.com/dominikh/go-tools.git $GOPATH/src/honnef.co/go/tools \
&& cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck \
&& git checkout 2017.2.2 \
&& go get \
&& go install \
&& cd $GOPATH/src/honnef.co/go/tools/cmd/gosimple \
&& go install \
&& cd $GOPATH/src/honnef.co/go/tools/cmd/unused \
&& go install \
&& /tmp/install-marker.sh amd64 \ && /tmp/install-marker.sh amd64 \
&& rm -f /tmp/install-marker.sh \ && rm -f /tmp/install-marker.sh \
&& curl -s https://codecov.io/bash >/codecov \ && curl -s https://codecov.io/bash >/codecov \