blas,lapack,matrix: remove obsolete .travis directory

Fixes gonum/gonum#25.
This commit is contained in:
Sebastien Binet
2017-05-26 11:57:51 +02:00
parent dd79751708
commit d0fc9efef3
20 changed files with 0 additions and 450 deletions

View File

@@ -1,8 +0,0 @@
#!/bin/bash
set -ex
go generate github.com/gonum/blas/native
go generate github.com/gonum/blas/cgo
if [ -n "$(git diff)" ]; then
exit 1
fi

View File

@@ -1,21 +0,0 @@
set -ex
# fetch and install ATLAS libs
sudo apt-get update -qq && sudo apt-get install -qq libatlas-base-dev
# fetch and install gonum/blas against ATLAS
export CGO_LDFLAGS="-L/usr/lib -lblas"
go get github.com/gonum/blas
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,71 +0,0 @@
set -ex
CACHE_DIR=${TRAVIS_BUILD_DIR}/.travis/${BLAS_LIB}.cache
# fetch fortran to build OpenBLAS
sudo apt-get update -qq && sudo apt-get install -qq gfortran
# check if cache exists
if [ -e ${CACHE_DIR}/last_commit_id ]; then
echo "Cache $CACHE_DIR hit"
LAST_COMMIT="$(git ls-remote git://github.com/xianyi/OpenBLAS HEAD | grep -o '^\S*')"
CACHED_COMMIT="$(cat ${CACHE_DIR}/last_commit_id)"
# determine current OpenBLAS master commit id and compare
# with commit id in cache directory
if [ "$LAST_COMMIT" != "$CACHED_COMMIT" ]; then
echo "Cache Directory $CACHE_DIR has stale commit"
# if commit is different, delete the cache
rm -rf ${CACHE_DIR}
fi
fi
if [ ! -e ${CACHE_DIR}/last_commit_id ]; then
# Clear cache.
rm -rf ${CACHE_DIR}
# cache generation
echo "Building cache at $CACHE_DIR"
mkdir ${CACHE_DIR}
sudo git clone --depth=1 git://github.com/xianyi/OpenBLAS
pushd OpenBLAS
sudo make FC=gfortran &> /dev/null && sudo make PREFIX=${CACHE_DIR} install
popd
curl http://www.netlib.org/blas/blast-forum/cblas.tgz | tar -zx
pushd CBLAS
sudo mv Makefile.LINUX Makefile.in
sudo BLLIB=${CACHE_DIR}/lib/libopenblas.a make alllib
sudo mv lib/cblas_LINUX.a ${CACHE_DIR}/lib/libcblas.a
popd
# Record commit id used to generate cache.
pushd OpenBLAS
echo $(git rev-parse HEAD) > ${CACHE_DIR}/last_commit_id
popd
fi
# copy the cache files into /usr
sudo cp -r ${CACHE_DIR}/* /usr/
# install gonum/blas against OpenBLAS
export CGO_LDFLAGS="-L/usr/lib -lopenblas"
go get github.com/gonum/blas
pushd cgo
go install -v -x
popd
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,18 +0,0 @@
set -ex
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# change to native directory so we don't test code that depends on an external
# blas library
cd native
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,21 +0,0 @@
set -ex
# This script contains common installation commands for linux. It should be run
# prior to more specific installation commands for a particular blas library.
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go get github.com/gonum/floats
# Repositories for code generation.
go get github.com/gonum/internal/binding
go get github.com/cznic/cc
# 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

View File

@@ -1,20 +0,0 @@
set -ex
export CGO_LDFLAGS="-framework Accelerate"
go get github.com/gonum/blas
pushd cgo
go install -v -x
popd
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,24 +0,0 @@
set -ex
# fetch and install OpenBLAS using homebrew
brew install homebrew/science/openblas
# fetch and install gonum/blas against OpenBLAS
export CGO_LDFLAGS="-L/usr/local/opt/openblas/lib -lopenblas"
go get github.com/gonum/blas
pushd cgo
go install -v -x
popd
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,18 +0,0 @@
set -ex
# run the OS common installation script
source ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/install.sh
# change to native directory so we don't test code that depends on an external
# blas library
cd native
# 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

View File

@@ -1,17 +0,0 @@
set -ex
go env
go get -d -t -v ./...
go test -a -v ./...
go test -a -tags noasm -v ./...
if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/.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

View File

@@ -1,23 +0,0 @@
set -ex
#!/bin/bash
# This script contains common installation commands for osx. It should be run
# prior to more specific installation commands for a particular blas library.
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go get github.com/gonum/floats
# Repositories for code generation.
go get github.com/gonum/internal/binding
go get github.com/cznic/cc
# 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

View File

@@ -1,7 +0,0 @@
#!/bin/bash
set -ex
go generate github.com/gonum/lapack/cgo/lapacke
if [ -n "$(git diff)" ]; then
exit 1
fi

View File

@@ -1,26 +0,0 @@
set -ex
# fetch and install ATLAS
sudo apt-get update -qq
sudo apt-get install -qq libatlas-base-dev
# fetch and install gonum/blas and gonum/matrix
export CGO_LDFLAGS="-L/usr/lib -latlas -llapack_atlas"
go get github.com/gonum/blas
go get github.com/gonum/matrix/mat64
# install lapack against ATLAS
pushd cgo/lapacke
go install -v -x
popd
# 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

View File

@@ -1,71 +0,0 @@
set -ex
CACHE_DIR=${TRAVIS_BUILD_DIR}/.travis/${BLAS_LIB}.cache
# fetch fortran to build OpenBLAS
sudo apt-get update -qq && sudo apt-get install -qq gfortran
# check if cache exists
if [ -e ${CACHE_DIR}/last_commit_id ]; then
echo "Cache $CACHE_DIR hit"
LAST_COMMIT="$(git ls-remote git://github.com/xianyi/OpenBLAS HEAD | grep -o '^\S*')"
CACHED_COMMIT="$(cat ${CACHE_DIR}/last_commit_id)"
# determine current OpenBLAS master commit id and compare
# with commit id in cache directory
if [ "$LAST_COMMIT" != "$CACHED_COMMIT" ]; then
echo "Cache Directory $CACHE_DIR has stale commit"
# if commit is different, delete the cache
rm -rf ${CACHE_DIR}
fi
fi
if [ ! -e ${CACHE_DIR}/last_commit_id ]; then
# Clear cache.
rm -rf ${CACHE_DIR}
# cache generation
echo "Building cache at $CACHE_DIR"
mkdir ${CACHE_DIR}
sudo git clone --depth=1 git://github.com/xianyi/OpenBLAS
pushd OpenBLAS
sudo make FC=gfortran &> /dev/null && sudo make PREFIX=${CACHE_DIR} install
popd
curl http://www.netlib.org/blas/blast-forum/cblas.tgz | tar -zx
pushd CBLAS
sudo mv Makefile.LINUX Makefile.in
sudo BLLIB=${CACHE_DIR}/lib/libopenblas.a make alllib
sudo mv lib/cblas_LINUX.a ${CACHE_DIR}/lib/libcblas.a
popd
# Record commit id used to generate cache.
pushd OpenBLAS
echo $(git rev-parse HEAD) > ${CACHE_DIR}/last_commit_id
popd
fi
# copy the cache files into /usr
sudo cp -r ${CACHE_DIR}/* /usr/
# install gonum/blas against OpenBLAS
# fetch and install gonum/blas
export CGO_LDFLAGS="-L/usr/lib -lopenblas"
go get github.com/gonum/blas
# install lapacke against OpenBLAS
pushd cgo/lapacke
go install -v -x
popd
# 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

View File

@@ -1,14 +0,0 @@
set -ex
# fetch gonum/blas
go get github.com/gonum/blas/native
# 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

View File

@@ -1,6 +0,0 @@
#!/bin/bash
go generate github.com/gonum/matrix
if [ -n "$(git diff)" ]; then
exit 1
fi