@@ -6,69 +6,79 @@ matrix:
6
6
- os : linux
7
7
dist : trusty
8
8
sudo : required
9
- go : 1.7.x
10
- script :
11
- - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
12
- - sudo modprobe fuse
13
- - sudo chmod 666 /dev/fuse
14
- - sudo chown root:$USER /etc/fuse.conf
15
- - go run build/ci.go install
16
- - go run build/ci.go test -coverage
17
-
18
- - os : linux
19
- dist : trusty
20
- sudo : required
21
- go : 1.8.x
9
+ go : 1.9.x
22
10
script :
23
- - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
24
11
- sudo modprobe fuse
25
12
- sudo chmod 666 /dev/fuse
26
13
- sudo chown root:$USER /etc/fuse.conf
27
14
- go run build/ci.go install
28
- - go run build/ci.go test -coverage
15
+ - go run build/ci.go test -coverage $TEST_PACKAGES
29
16
30
17
# These are the latest Go versions.
31
18
- os : linux
32
19
dist : trusty
33
20
sudo : required
34
- go : 1.9 .x
21
+ go : 1.10 .x
35
22
script :
36
- - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
37
23
- sudo modprobe fuse
38
24
- sudo chmod 666 /dev/fuse
39
25
- sudo chown root:$USER /etc/fuse.conf
40
26
- go run build/ci.go install
41
- - go run build/ci.go test -coverage -misspell
27
+ - go run build/ci.go test -coverage $TEST_PACKAGES
42
28
43
29
- os : osx
44
- go : 1.9.x
45
- sudo : required
30
+ go : 1.10.x
46
31
script :
32
+ - unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703
47
33
- brew update
48
- - brew install caskroom/cask/brew-cask
49
34
- brew cask install osxfuse
50
35
- go run build/ci.go install
51
- - go run build/ci.go test -coverage -misspell
36
+ - go run build/ci.go test -coverage $TEST_PACKAGES
52
37
53
- # This builder does the Ubuntu PPA and Linux Azure uploads
38
+ # This builder only tests code linters on latest version of Go
54
39
- os : linux
55
40
dist : trusty
56
- sudo : required
57
- go : 1.9.x
41
+ go : 1.10.x
42
+ env :
43
+ - lint
44
+ git :
45
+ submodules : false # avoid cloning ethereum/tests
46
+ script :
47
+ - go run build/ci.go lint
48
+
49
+ # This builder does the Ubuntu PPA upload
50
+ - os : linux
51
+ dist : trusty
52
+ go : 1.10.x
58
53
env :
59
54
- ubuntu-ppa
60
- - azure-linux
55
+ git :
56
+ submodules : false # avoid cloning ethereum/tests
61
57
addons :
62
58
apt :
63
59
packages :
64
60
- devscripts
65
61
- debhelper
66
62
- dput
67
- - gcc-multilib
68
63
- fakeroot
69
64
script :
70
- # Build for the primary platforms that Trusty can manage
71
65
-
go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <[email protected] >" -upload ppa:ethereum/ethereum
66
+
67
+ # This builder does the Linux Azure uploads
68
+ - os : linux
69
+ dist : trusty
70
+ sudo : required
71
+ go : 1.10.x
72
+ env :
73
+ - azure-linux
74
+ git :
75
+ submodules : false # avoid cloning ethereum/tests
76
+ addons :
77
+ apt :
78
+ packages :
79
+ - gcc-multilib
80
+ script :
81
+ # Build for the primary platforms that Trusty can manage
72
82
- go run build/ci.go install
73
83
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
74
84
- go run build/ci.go install -arch 386
@@ -78,24 +88,25 @@ matrix:
78
88
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
79
89
- sudo ln -s /usr/include/asm-generic /usr/include/asm
80
90
81
- - GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
91
+ - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
82
92
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
83
- - GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
93
+ - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
84
94
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
85
- - GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
95
+ - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
86
96
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
87
- - CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
97
+ - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
88
98
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
89
99
90
100
# This builder does the Linux Azure MIPS xgo uploads
91
101
- os : linux
92
102
dist : trusty
93
- sudo : required
94
103
services :
95
104
- docker
96
- go : 1.9 .x
105
+ go : 1.10 .x
97
106
env :
98
107
- azure-linux-mips
108
+ git :
109
+ submodules : false # avoid cloning ethereum/tests
99
110
script :
100
111
- go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
101
112
- for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
@@ -132,29 +143,33 @@ matrix:
132
143
env :
133
144
- azure-android
134
145
- maven-android
146
+ git :
147
+ submodules : false # avoid cloning ethereum/tests
135
148
before_install :
136
- - curl https://storage.googleapis.com/golang/go1.9 .linux-amd64.tar.gz | tar -xz
149
+ - curl https://storage.googleapis.com/golang/go1.10.1 .linux-amd64.tar.gz | tar -xz
137
150
- export PATH=`pwd`/go/bin:$PATH
138
151
- export GOROOT=`pwd`/go
139
152
- export GOPATH=$HOME/go
140
153
script :
141
154
# Build the Android archive and upload it to Maven Central and Azure
142
- - curl https://dl.google.com/android/repository/android-ndk-r14b -linux-x86_64.zip -o android-ndk-r14b .zip
143
- - unzip -q android-ndk-r14b .zip && rm android-ndk-r14b .zip
144
- - mv android-ndk-r14b $HOME
145
- - export ANDROID_NDK=$HOME/android-ndk-r14b
155
+ - curl https://dl.google.com/android/repository/android-ndk-r16b -linux-x86_64.zip -o android-ndk-r16b .zip
156
+ - unzip -q android-ndk-r16b .zip && rm android-ndk-r16b .zip
157
+ - mv android-ndk-r16b $HOME
158
+ - export ANDROID_NDK=$HOME/android-ndk-r16b
146
159
147
160
- mkdir -p $GOPATH/src/github.com/ethereum
148
161
- ln -s `pwd` $GOPATH/src/github.com/ethereum
149
162
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
150
163
151
164
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
152
165
- os : osx
153
- go : 1.9 .x
166
+ go : 1.10 .x
154
167
env :
155
168
- azure-osx
156
169
- azure-ios
157
170
- cocoapods-ios
171
+ git :
172
+ submodules : false # avoid cloning ethereum/tests
158
173
script :
159
174
- go run build/ci.go install
160
175
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
@@ -170,24 +185,21 @@ matrix:
170
185
- xctool -version
171
186
- xcrun simctl list
172
187
188
+ # Workaround for https://github.com/golang/go/issues/23749
189
+ - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
173
190
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
174
191
175
192
# This builder does the Azure archive purges to avoid accumulating junk
176
193
- os : linux
177
194
dist : trusty
178
- sudo : required
179
- go : 1.9.x
195
+ go : 1.10.x
180
196
env :
181
197
- azure-purge
198
+ git :
199
+ submodules : false # avoid cloning ethereum/tests
182
200
script :
183
201
- go run build/ci.go purge -store gethstore/builds -days 14
184
202
185
- install :
186
- - go get golang.org/x/tools/cmd/cover
187
- script :
188
- - go run build/ci.go install
189
- - go run build/ci.go test -coverage
190
-
191
203
notifications :
192
204
webhooks :
193
205
urls :
0 commit comments