-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: run install and tests in new shells
This had the effect of killing the travis script when a t.Fatal was hit. As noted in the comment that was removed - a non-zero exit status makes set -e exit, but this exits from the build script.
- Loading branch information
Showing
3 changed files
with
6 additions
and
22 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
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 |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
go env | ||
go get -d -t -v ./... | ||
export CGO_LDFLAGS="-L/usr/lib -lopenblas" | ||
go test -a -v ./... | ||
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/gonum.org/v1/netlib/.travis/test-coverage.sh"; fi | ||
|
||
# travis compiles commands in script and then executes in bash. By adding | ||
# set -e we are changing the travis build script's behavior, and the set | ||
# -e lives on past the commands we are providing it. Some of the travis | ||
# commands are supposed to exit with non zero status, but then continue | ||
# executing. set -x makes the travis log files extremely verbose and | ||
# difficult to understand. | ||
# | ||
# see travis-ci/travis-ci#5120 | ||
set +ex |