Skip to content

Commit 2e24770

Browse files
acudfjl
authored andcommitted
travis.yml: add TEST_PACKAGES to speed up swarm testing (#16456)
This commit is meant to allow ecosystem projects such as ethersphere to minimize CI build times by specifying an environment variable with the packages to run tests on. If the environment variable isn't defined the build script will test all packages so this shouldn't affect the main go-ethereum repository.
1 parent 3caf16b commit 2e24770

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ matrix:
1212
- sudo chmod 666 /dev/fuse
1313
- sudo chown root:$USER /etc/fuse.conf
1414
- go run build/ci.go install
15-
- go run build/ci.go test -coverage
15+
- go run build/ci.go test -coverage $TEST_PACKAGES
1616

1717
# These are the latest Go versions.
1818
- os: linux
@@ -24,7 +24,7 @@ matrix:
2424
- sudo chmod 666 /dev/fuse
2525
- sudo chown root:$USER /etc/fuse.conf
2626
- go run build/ci.go install
27-
- go run build/ci.go test -coverage
27+
- go run build/ci.go test -coverage $TEST_PACKAGES
2828

2929
- os: osx
3030
go: "1.10"
@@ -34,7 +34,7 @@ matrix:
3434
- brew install caskroom/cask/brew-cask
3535
- brew cask install osxfuse
3636
- go run build/ci.go install
37-
- go run build/ci.go test -coverage
37+
- go run build/ci.go test -coverage $TEST_PACKAGES
3838

3939
# This builder only tests code linters on latest version of Go
4040
- os: linux

0 commit comments

Comments
 (0)