Skip to content

Commit

Permalink
Merge d466e73 into d99ecec
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 27, 2018
2 parents d99ecec + d466e73 commit 83d65a6
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -38,6 +38,12 @@ matrix:
- os: osx
env: BLAS_LIB=OpenBLAS

before_install:
# Required for imports check.
- go get gonum.org/v1/tools/cmd/check-imports
# Required for copyright header check.
- go get gonum.org/v1/tools/cmd/check-copyright

# Cache used to persist the compiled BLAS library between CI calls.
cache:
directories:
Expand All @@ -48,6 +54,8 @@ install:
- travis_wait 20 source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/$BLAS_LIB/install.sh

script:
- ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh
- ${TRAVIS_BUILD_DIR}/.travis/check-copyright.sh
- source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/$BLAS_LIB/test.sh
- test -z "$(gofmt -d .)"
# This is run last since it alters the tree.
Expand Down
4 changes: 4 additions & 0 deletions .travis/check-copyright.sh
@@ -0,0 +1,4 @@
#!/bin/bash

set -e
check-copyright -notice "Copyright ©20[0-9]{2} The Gonum Authors\. All rights reserved\."
4 changes: 4 additions & 0 deletions .travis/check-imports.sh
@@ -0,0 +1,4 @@
#!/bin/bash

set -e
check-imports -b "math/rand,github.com/gonum/.*"
4 changes: 4 additions & 0 deletions blas/netlib/bench_test.go
@@ -1,3 +1,7 @@
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package netlib

import (
Expand Down
4 changes: 4 additions & 0 deletions blas/netlib/dgemmbench_test.go
@@ -1,3 +1,7 @@
// Copyright ©2014 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package netlib

import (
Expand Down
4 changes: 4 additions & 0 deletions blas/netlib/dgemvbench_test.go
@@ -1,3 +1,7 @@
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package netlib

import (
Expand Down
4 changes: 4 additions & 0 deletions blas/netlib/dgerbench_test.go
@@ -1,3 +1,7 @@
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package netlib

import (
Expand Down
2 changes: 1 addition & 1 deletion blas/netlib/dtrmvbench_test.go
@@ -1,4 +1,4 @@
// Copyright ©2017 The gonum Authors. All rights reserved.
// Copyright ©2017 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down
7 changes: 4 additions & 3 deletions blas/netlib/level1doubleBench_auto_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lapack/lapacke/generate.go
@@ -1,4 +1,4 @@
// Copyright ©2016 The gonum Authors. All rights reserved.
// Copyright ©2016 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion lapack/lapacke/generate_lapacke.go
Expand Up @@ -515,7 +515,7 @@ func address(buf *bytes.Buffer, d binding.Declaration, p binding.Parameter) bool

const handwritten = `// Code generated by "go generate gonum.org/v1/netlib/lapack/lapacke" from {{.Header}}; DO NOT EDIT.
// Copyright ©2014 The gonum Authors. All rights reserved.
// Copyright ©2014 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion lapack/lapacke/lapacke.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lapack/netlib/bench_test.go
@@ -1,4 +1,4 @@
// Copyright ©2016 The gonum Authors. All rights reserved.
// Copyright ©2016 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion lapack/netlib/lapack.go
@@ -1,4 +1,4 @@
// Copyright ©2015 The gonum Authors. All rights reserved.
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion lapack/netlib/lapack_test.go
@@ -1,4 +1,4 @@
// Copyright ©2015 The gonum Authors. All rights reserved.
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down

0 comments on commit 83d65a6

Please sign in to comment.