gonum: clean away old files and fix-up travis

This commit is contained in:
kortschak
2017-05-23 15:47:13 +09:30
parent 6c0300859a
commit f0d35b292a
4 changed files with 7 additions and 20 deletions
+7 -5
View File
@@ -4,8 +4,8 @@ language: go
# Versions of go that are explicitly supported by gonum.
go:
- 1.6.3
- 1.7.3
- 1.6
- 1.7
- 1.8
# Required for coverage.
@@ -13,12 +13,14 @@ before_install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
go_import_path: gonum.org/v1/gonum
# Get deps, build, test, and ensure the code is gofmt'ed.
# If we are building as gonum, then we have access to the coveralls api key, so we can run coverage as well.
script:
- go get -d -t -v ./...
- go build -v ./...
- go test -v ./...
- go get -d -t -v gonum.org/v1/gonum/...
- go build -v gonum.org/v1/gonum/...
- go test -v gonum.org/v1/gonum/...
- test -z "$(gofmt -d .)"
- if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash ./.travis/test-coverage.sh; fi
-3
View File
@@ -1,3 +0,0 @@
"The ideas of science germinate in a matrix of established knowledge gained by experiment; they are not lonesome thoughts, born in a rarified realm where no researcher has gone before."
Seth Shostak
-3
View File
@@ -1,3 +0,0 @@
package gonum
const theMatrix = -1
-9
View File
@@ -1,9 +0,0 @@
package gonum
import "testing"
func TestTheMatrix(t *testing.T) {
if theMatrix != -1 {
t.Errorf("Bad constant value")
}
}