Skip to content

Commit e43bc36

Browse files
SamuelMarkskaralabe
authored andcommitted
travis, appveyor, Dockerfile: upgrade to Go 1.12
1 parent 7ebd2fa commit e43bc36

8 files changed

Lines changed: 30 additions & 19 deletions

File tree

‎.travis.yml‎

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ matrix:
1414
- go run build/ci.go install
1515
- go run build/ci.go test -coverage $TEST_PACKAGES
1616

17-
# These are the latest Go versions.
1817
- os: linux
1918
dist: trusty
2019
sudo: required
@@ -26,8 +25,20 @@ matrix:
2625
- go run build/ci.go install
2726
- go run build/ci.go test -coverage $TEST_PACKAGES
2827

28+
# These are the latest Go versions.
29+
- os: linux
30+
dist: trusty
31+
sudo: required
32+
go: 1.12.x
33+
script:
34+
- sudo modprobe fuse
35+
- sudo chmod 666 /dev/fuse
36+
- sudo chown root:$USER /etc/fuse.conf
37+
- go run build/ci.go install
38+
- go run build/ci.go test -coverage $TEST_PACKAGES
39+
2940
- os: osx
30-
go: 1.11.x
41+
go: 1.12.x
3142
script:
3243
- echo "Increase the maximum number of open file descriptors on macOS"
3344
- NOFILE=20480
@@ -44,7 +55,7 @@ matrix:
4455
# This builder only tests code linters on latest version of Go
4556
- os: linux
4657
dist: trusty
47-
go: 1.11.x
58+
go: 1.12.x
4859
env:
4960
- lint
5061
git:
@@ -56,7 +67,7 @@ matrix:
5667
- if: repo = ethereum/go-ethereum AND type = push
5768
os: linux
5869
dist: trusty
59-
go: 1.11.x
70+
go: 1.12.x
6071
env:
6172
- ubuntu-ppa
6273
git:
@@ -79,7 +90,7 @@ matrix:
7990
os: linux
8091
dist: trusty
8192
sudo: required
82-
go: 1.11.x
93+
go: 1.12.x
8394
env:
8495
- azure-linux
8596
git:
@@ -114,7 +125,7 @@ matrix:
114125
dist: trusty
115126
services:
116127
- docker
117-
go: 1.11.x
128+
go: 1.12.x
118129
env:
119130
- azure-linux-mips
120131
git:
@@ -159,7 +170,7 @@ matrix:
159170
git:
160171
submodules: false # avoid cloning ethereum/tests
161172
before_install:
162-
- curl https://storage.googleapis.com/golang/go1.11.5.linux-amd64.tar.gz | tar -xz
173+
- curl https://dl.google.com/go/go1.12.linux-amd64.tar.gz | tar -xz
163174
- export PATH=`pwd`/go/bin:$PATH
164175
- export GOROOT=`pwd`/go
165176
- export GOPATH=$HOME/go
@@ -176,7 +187,7 @@ matrix:
176187
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
177188
- if: repo = ethereum/go-ethereum AND type = push
178189
os: osx
179-
go: 1.11.x
190+
go: 1.12.x
180191
env:
181192
- azure-osx
182193
- azure-ios
@@ -206,7 +217,7 @@ matrix:
206217
- if: repo = ethereum/go-ethereum AND type = cron
207218
os: linux
208219
dist: trusty
209-
go: 1.11.x
220+
go: 1.12.x
210221
env:
211222
- azure-purge
212223
git:
@@ -218,7 +229,7 @@ matrix:
218229
if: repo = ethersphere/go-ethereum
219230
os: linux
220231
dist: trusty
221-
go: 1.11.x
232+
go: 1.12.x
222233
git:
223234
submodules: false # avoid cloning ethereum/tests
224235
script: ./build/travis_keepalive.sh go test -v -timeout 20m -race ./swarm...

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.11-alpine as builder
2+
FROM golang:1.12-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers
55

‎Dockerfile.alltools‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.11-alpine as builder
2+
FROM golang:1.12-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers
55

‎appveyor.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ environment:
2323
install:
2424
- git submodule update --init
2525
- rmdir C:\go /s /q
26-
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.11.5.windows-%GETH_ARCH%.zip
27-
- 7z x go1.11.5.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
26+
- appveyor DownloadFile https://dl.google.com/go/go1.12.windows-%GETH_ARCH%.zip
27+
- 7z x go1.12.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
2828
- go version
2929
- gcc --version
3030

‎core/tx_pool_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func validateEvents(events chan NewTxsEvent, count int) error {
126126
case ev := <-events:
127127
received = append(received, ev.Txs...)
128128
case <-time.After(time.Second):
129-
return fmt.Errorf("event #%d not fired", received)
129+
return fmt.Errorf("event #%d not fired", len(received))
130130
}
131131
}
132132
if len(received) > count {

‎crypto/bn256/cloudflare/main_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestRandomG2Marshal(t *testing.T) {
1313
t.Error(err)
1414
continue
1515
}
16-
t.Logf("%d: %x\n", n, g2.Marshal())
16+
t.Logf("%v: %x\n", n, g2.Marshal())
1717
}
1818
}
1919

‎crypto/bn256/google/main_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestRandomG2Marshal(t *testing.T) {
1313
t.Error(err)
1414
continue
1515
}
16-
t.Logf("%d: %x\n", n, g2.Marshal())
16+
t.Logf("%v: %x\n", n, g2.Marshal())
1717
}
1818
}
1919

‎internal/build/util.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ func CopyFile(dst, src string, mode os.FileMode) {
143143
// so that go commands executed by build use the same version of Go as the 'host' that runs
144144
// build code. e.g.
145145
//
146-
// /usr/lib/go-1.11/bin/go run build/ci.go ...
146+
// /usr/lib/go-1.12/bin/go run build/ci.go ...
147147
//
148-
// runs using go 1.11 and invokes go 1.11 tools from the same GOROOT. This is also important
148+
// runs using go 1.12 and invokes go 1.12 tools from the same GOROOT. This is also important
149149
// because runtime.Version checks on the host should match the tools that are run.
150150
func GoTool(tool string, args ...string) *exec.Cmd {
151151
args = append([]string{tool}, args...)

0 commit comments

Comments
 (0)