f39b7aaaf9
This commit modifies the travis build script, and our local test script to ensure that the race condition builds are conducted in a parallel build. After this commit two travis builds will be kicked off for each push/commit: one that runs the race condition tests in isolation, and another that runs the integration tests then the coverage tests. In order to do the above cleanly, the integration tests are now guarded behind a build flag. In order to run the integration tests, one now needs to specify the `-tags rpctest` flag when running the `go test` command.
25 lines
593 B
YAML
25 lines
593 B
YAML
language: go
|
|
go:
|
|
- 1.7.6
|
|
- 1.8.3
|
|
sudo: false
|
|
install:
|
|
- GLIDE_TAG=v0.12.3
|
|
- GLIDE_DOWNLOAD="https://github.com/Masterminds/glide/releases/download/$GLIDE_TAG/glide-$GLIDE_TAG-linux-amd64.tar.gz"
|
|
- curl -L $GLIDE_DOWNLOAD | tar -xvz
|
|
- export PATH=$PATH:$PWD/linux-amd64/
|
|
- mkdir -p $GOPATH/src/github.com/roasbeef/
|
|
- pushd $GOPATH/src/github.com/roasbeef/
|
|
- git clone https://github.com/roasbeef/btcd
|
|
- pushd btcd
|
|
- glide install
|
|
- go install . ./cmd/...
|
|
- popd
|
|
- popd
|
|
env:
|
|
- RACE=false
|
|
- RACE=true
|
|
script:
|
|
- export PATH=$PATH:$HOME/gopath/bin
|
|
- ./gotest.sh
|