Skip to content

Commit b587427

Browse files
authored
travis.yml: avoid submodules on builders without tests (ethereum#15620)
Also remove installation steps for fuse and golang.org/x/tools/cmd/cover because they're not required anymore.
1 parent 8092106 commit b587427

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.travis.yml

+12-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ matrix:
88
sudo: required
99
go: 1.7.x
1010
script:
11-
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
1211
- sudo modprobe fuse
1312
- sudo chmod 666 /dev/fuse
1413
- sudo chown root:$USER /etc/fuse.conf
@@ -20,7 +19,6 @@ matrix:
2019
sudo: required
2120
go: 1.8.x
2221
script:
23-
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
2422
- sudo modprobe fuse
2523
- sudo chmod 666 /dev/fuse
2624
- sudo chown root:$USER /etc/fuse.conf
@@ -33,7 +31,6 @@ matrix:
3331
sudo: required
3432
go: 1.9.x
3533
script:
36-
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
3734
- sudo modprobe fuse
3835
- sudo chmod 666 /dev/fuse
3936
- sudo chown root:$USER /etc/fuse.conf
@@ -42,7 +39,6 @@ matrix:
4239

4340
- os: osx
4441
go: 1.9.x
45-
sudo: required
4642
script:
4743
- brew update
4844
- brew install caskroom/cask/brew-cask
@@ -53,15 +49,12 @@ matrix:
5349
# This builder only tests code linters on latest version of Go
5450
- os: linux
5551
dist: trusty
56-
sudo: required
5752
go: 1.9.x
5853
env:
5954
- lint
55+
git:
56+
submodules: false # avoid cloning ethereum/tests
6057
script:
61-
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install fuse
62-
- sudo modprobe fuse
63-
- sudo chmod 666 /dev/fuse
64-
- sudo chown root:$USER /etc/fuse.conf
6558
- go run build/ci.go lint
6659

6760
# This builder does the Ubuntu PPA and Linux Azure uploads
@@ -72,6 +65,8 @@ matrix:
7265
env:
7366
- ubuntu-ppa
7467
- azure-linux
68+
git:
69+
submodules: false # avoid cloning ethereum/tests
7570
addons:
7671
apt:
7772
packages:
@@ -104,12 +99,13 @@ matrix:
10499
# This builder does the Linux Azure MIPS xgo uploads
105100
- os: linux
106101
dist: trusty
107-
sudo: required
108102
services:
109103
- docker
110104
go: 1.9.x
111105
env:
112106
- azure-linux-mips
107+
git:
108+
submodules: false # avoid cloning ethereum/tests
113109
script:
114110
- go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
115111
- for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
@@ -146,6 +142,8 @@ matrix:
146142
env:
147143
- azure-android
148144
- maven-android
145+
git:
146+
submodules: false # avoid cloning ethereum/tests
149147
before_install:
150148
- curl https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | tar -xz
151149
- export PATH=`pwd`/go/bin:$PATH
@@ -169,6 +167,8 @@ matrix:
169167
- azure-osx
170168
- azure-ios
171169
- cocoapods-ios
170+
git:
171+
submodules: false # avoid cloning ethereum/tests
172172
script:
173173
- go run build/ci.go install
174174
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
@@ -193,15 +193,11 @@ matrix:
193193
go: 1.9.x
194194
env:
195195
- azure-purge
196+
git:
197+
submodules: false # avoid cloning ethereum/tests
196198
script:
197199
- go run build/ci.go purge -store gethstore/builds -days 14
198200

199-
install:
200-
- go get golang.org/x/tools/cmd/cover
201-
script:
202-
- go run build/ci.go install
203-
- go run build/ci.go test -coverage
204-
205201
notifications:
206202
webhooks:
207203
urls:

0 commit comments

Comments
 (0)