Skip to content

Commit 389bd75

Browse files
tylerferrarakaralabe
authored andcommitted
travis: isolate linter and tests jobs (#19883)
1 parent 08e5cd9 commit 389bd75

File tree

1 file changed

+33
-22
lines changed

1 file changed

+33
-22
lines changed

.travis.yml

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
11
language: go
22
go_import_path: github.com/ethereum/go-ethereum
33
sudo: false
4-
matrix:
4+
jobs:
55
include:
6-
- os: linux
6+
# This builder only tests code linters on latest version of Go
7+
- stage: lint
8+
os: linux
9+
dist: xenial
10+
go: 1.12.x
11+
env:
12+
- lint
13+
git:
14+
submodules: false # avoid cloning ethereum/tests
15+
script:
16+
- go run build/ci.go lint
17+
18+
- stage: build
19+
os: linux
720
dist: xenial
821
go: 1.10.x
922
script:
1023
- go run build/ci.go install
1124
- go run build/ci.go test -coverage $TEST_PACKAGES
1225

13-
- os: linux
26+
- stage: build
27+
os: linux
1428
dist: xenial
1529
go: 1.11.x
1630
script:
1731
- go run build/ci.go install
1832
- go run build/ci.go test -coverage $TEST_PACKAGES
1933

2034
# These are the latest Go versions.
21-
- os: linux
35+
- stage: build
36+
os: linux
2237
dist: xenial
2338
go: 1.12.x
2439
script:
2540
- go run build/ci.go install
2641
- go run build/ci.go test -coverage $TEST_PACKAGES
2742

28-
- os: osx
43+
- stage: build
44+
os: osx
2945
go: 1.12.x
3046
script:
3147
- echo "Increase the maximum number of open file descriptors on macOS"
@@ -40,19 +56,9 @@ matrix:
4056
- go run build/ci.go install
4157
- go run build/ci.go test -coverage $TEST_PACKAGES
4258

43-
# This builder only tests code linters on latest version of Go
44-
- os: linux
45-
dist: xenial
46-
go: 1.12.x
47-
env:
48-
- lint
49-
git:
50-
submodules: false # avoid cloning ethereum/tests
51-
script:
52-
- go run build/ci.go lint
53-
5459
# This builder does the Ubuntu PPA upload
55-
- if: type = push
60+
- stage: build
61+
if: type = push
5662
os: linux
5763
dist: xenial
5864
go: 1.12.x
@@ -74,7 +80,8 @@ matrix:
7480
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
7581

7682
# This builder does the Linux Azure uploads
77-
- if: type = push
83+
- stage: build
84+
if: type = push
7885
os: linux
7986
dist: xenial
8087
sudo: required
@@ -108,7 +115,8 @@ matrix:
108115
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
109116

110117
# This builder does the Linux Azure MIPS xgo uploads
111-
- if: type = push
118+
- stage: build
119+
if: type = push
112120
os: linux
113121
dist: xenial
114122
services:
@@ -136,7 +144,8 @@ matrix:
136144
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
137145

138146
# This builder does the Android Maven and Azure uploads
139-
- if: type = push
147+
- stage: build
148+
if: type = push
140149
os: linux
141150
dist: xenial
142151
addons:
@@ -173,7 +182,8 @@ matrix:
173182
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
174183

175184
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
176-
- if: type = push
185+
- stage: build
186+
if: type = push
177187
os: osx
178188
go: 1.12.x
179189
env:
@@ -202,7 +212,8 @@ matrix:
202212
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
203213

204214
# This builder does the Azure archive purges to avoid accumulating junk
205-
- if: type = cron
215+
- stage: build
216+
if: type = cron
206217
os: linux
207218
dist: xenial
208219
go: 1.12.x

0 commit comments

Comments
 (0)