Skip to content

Commit e3b2a10

Browse files
committed
Speed up 'go get'
Update cs-demos submodule - New revision contains a config entry lfs.fetchexclude = * That way the end user doesn't have to download all the test data Travis: Download test data Remove note regarding go get speed in README
1 parent f680ada commit e3b2a10

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ go:
77
- master
88

99
before_script:
10-
# We don't want to run the demo set test with race condition testing.
11-
# The demo set is large and race tests take a lot longer
12-
- race_tests=$(go test -list . | grep -v "TestDemoSet\|Benchmark" | head -n -1 | awk -vORS=\| '{ print $1 }' | sed 's/|$/\n/')
10+
# Download test data
11+
- pushd cs-demos && git lfs pull -I '*' && popd
1312

1413
script:
14+
# Get list of tests to run with race detection.
15+
# We don't want to run the entire demo set with it because it's large and race tests take a lot longer.
16+
- race_tests=$(go test -list . | grep -v "TestDemoSet\|Benchmark" | head -n -1 | awk -vORS=\| '{ print $1 }' | sed 's/|$/\n/')
1517
# Run race tests
1618
- go test -v -race -run "$race_tests" -timeout 15m
19+
1720
# We run all tests again to get full coverage, technically unncecessary tho
1821
- go test -v -timeout 30m -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v msg | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/') ./...
1922

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ To run tests [Git LFS](https://git-lfs.github.com) is required.
192192
```sh
193193
git submodule init
194194
git submodule update
195-
pushd cs-demos && git lfs pull && popd
195+
pushd cs-demos && git lfs pull -I '*' && popd
196196
go test
197197
```
198198

cs-demos

Submodule cs-demos updated from 28d6183 to 627fd76

0 commit comments

Comments
 (0)