-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Travis script to be hermetic (#68)
Fix the Travis script to be hermetic such that the test result is agnostic to when in time it is run. That is, all of the dependencies are explicitly versioned.
- Loading branch information
Showing
5 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,29 @@ before_install: | |
- (cd zstd-1.3.2 && sudo make install) | ||
- rm -rf zstd-1.3.2 | ||
- sudo ldconfig | ||
before_script: | ||
- go get github.com/golang/lint/golint | ||
- go get honnef.co/go/tools/cmd/staticcheck | ||
- mkdir /tmp/go1.12 | ||
- curl -L -s https://dl.google.com/go/go1.12.linux-amd64.tar.gz | tar -zxf - -C /tmp/go1.12 --strip-components 1 | ||
- unset GOROOT | ||
- (GO111MODULE=on /tmp/go1.12/bin/go mod vendor) | ||
- (cd /tmp && GO111MODULE=on /tmp/go1.12/bin/go get golang.org/x/lint/golint@8f45f776aaf18cebc8d65861cc70c33c60471952) | ||
- (cd /tmp && GO111MODULE=on /tmp/go1.12/bin/go get honnef.co/go/tools/cmd/[email protected]) | ||
matrix: | ||
include: | ||
- go: 1.7.x | ||
script: go test -v -race ./... | ||
- go: 1.x | ||
script: ./ztest.sh | ||
- go: 1.9.x | ||
script: | ||
- go test -v -race ./... | ||
- go: 1.10.x | ||
script: | ||
- go test -v -race ./... | ||
- go: 1.11.x | ||
script: | ||
- go test -v -race ./... | ||
- go: 1.12.x | ||
script: | ||
- ./ztest.sh | ||
- go: master | ||
script: go test -v -race ./... | ||
script: | ||
- go test -v -race ./... | ||
allow_failures: | ||
- go: master | ||
fast_finish: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module github.com/dsnet/compress | ||
|
||
go 1.9 | ||
|
||
require ( | ||
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780 | ||
github.com/klauspost/compress v1.4.1 | ||
github.com/klauspost/cpuid v1.2.0 // indirect | ||
github.com/ulikunitz/xz v0.5.6 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780 h1:tFh1tRc4CA31yP6qDcu+Trax5wW5GuMxvkIba07qVLY= | ||
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= | ||
github.com/klauspost/compress v1.4.1 h1:8VMb5+0wMgdBykOV96DwNwKFQ+WTI4pzYURP99CcB9E= | ||
github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= | ||
github.com/klauspost/cpuid v1.2.0 h1:NMpwD2G9JSFOE1/TJjGSo5zG7Yb2bTe7eq1jH+irmeE= | ||
github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= | ||
github.com/ulikunitz/xz v0.5.6 h1:jGHAfXawEGZQ3blwU5wnWKQJvAraT7Ftq9EXjnXYgt8= | ||
github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters