From d0fc9efef349a4e4568933e82f7972b1df63bfce Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Fri, 26 May 2017 11:57:51 +0200 Subject: [PATCH] blas,lapack,matrix: remove obsolete .travis directory Fixes gonum/gonum#25. --- blas/.travis/check-generate.sh | 8 --- blas/.travis/linux/ATLAS/install.sh | 21 ------- blas/.travis/linux/ATLAS/test.sh | 17 ------ blas/.travis/linux/OpenBLAS/install.sh | 71 ------------------------ blas/.travis/linux/OpenBLAS/test.sh | 17 ------ blas/.travis/linux/gonum/install.sh | 18 ------ blas/.travis/linux/gonum/test.sh | 17 ------ blas/.travis/linux/install.sh | 21 ------- blas/.travis/osx/Accelerate/install.sh | 20 ------- blas/.travis/osx/Accelerate/test.sh | 17 ------ blas/.travis/osx/OpenBLAS/install.sh | 24 -------- blas/.travis/osx/OpenBLAS/test.sh | 17 ------ blas/.travis/osx/gonum/install.sh | 18 ------ blas/.travis/osx/gonum/test.sh | 17 ------ blas/.travis/osx/install.sh | 23 -------- lapack/.travis/check-generate.sh | 7 --- lapack/.travis/linux/ATLAS/install.sh | 26 --------- lapack/.travis/linux/OpenBLAS/install.sh | 71 ------------------------ lapack/.travis/linux/gonum/install.sh | 14 ----- matrix/.travis/check-generate.sh | 6 -- 20 files changed, 450 deletions(-) delete mode 100755 blas/.travis/check-generate.sh delete mode 100644 blas/.travis/linux/ATLAS/install.sh delete mode 100644 blas/.travis/linux/ATLAS/test.sh delete mode 100644 blas/.travis/linux/OpenBLAS/install.sh delete mode 100644 blas/.travis/linux/OpenBLAS/test.sh delete mode 100644 blas/.travis/linux/gonum/install.sh delete mode 100644 blas/.travis/linux/gonum/test.sh delete mode 100644 blas/.travis/linux/install.sh delete mode 100644 blas/.travis/osx/Accelerate/install.sh delete mode 100644 blas/.travis/osx/Accelerate/test.sh delete mode 100644 blas/.travis/osx/OpenBLAS/install.sh delete mode 100644 blas/.travis/osx/OpenBLAS/test.sh delete mode 100644 blas/.travis/osx/gonum/install.sh delete mode 100644 blas/.travis/osx/gonum/test.sh delete mode 100644 blas/.travis/osx/install.sh delete mode 100755 lapack/.travis/check-generate.sh delete mode 100644 lapack/.travis/linux/ATLAS/install.sh delete mode 100644 lapack/.travis/linux/OpenBLAS/install.sh delete mode 100644 lapack/.travis/linux/gonum/install.sh delete mode 100755 matrix/.travis/check-generate.sh diff --git a/blas/.travis/check-generate.sh b/blas/.travis/check-generate.sh deleted file mode 100755 index 167c98bf..00000000 --- a/blas/.travis/check-generate.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/ATLAS/install.sh b/blas/.travis/linux/ATLAS/install.sh deleted file mode 100644 index 923dcf5e..00000000 --- a/blas/.travis/linux/ATLAS/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/ATLAS/test.sh b/blas/.travis/linux/ATLAS/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/linux/ATLAS/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/OpenBLAS/install.sh b/blas/.travis/linux/OpenBLAS/install.sh deleted file mode 100644 index 97c4ace3..00000000 --- a/blas/.travis/linux/OpenBLAS/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/OpenBLAS/test.sh b/blas/.travis/linux/OpenBLAS/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/linux/OpenBLAS/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/gonum/install.sh b/blas/.travis/linux/gonum/install.sh deleted file mode 100644 index 266fa0ca..00000000 --- a/blas/.travis/linux/gonum/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/gonum/test.sh b/blas/.travis/linux/gonum/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/linux/gonum/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/linux/install.sh b/blas/.travis/linux/install.sh deleted file mode 100644 index 842385a0..00000000 --- a/blas/.travis/linux/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/Accelerate/install.sh b/blas/.travis/osx/Accelerate/install.sh deleted file mode 100644 index 1dd9a1d6..00000000 --- a/blas/.travis/osx/Accelerate/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/Accelerate/test.sh b/blas/.travis/osx/Accelerate/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/osx/Accelerate/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/OpenBLAS/install.sh b/blas/.travis/osx/OpenBLAS/install.sh deleted file mode 100644 index 5b60bdc3..00000000 --- a/blas/.travis/osx/OpenBLAS/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/OpenBLAS/test.sh b/blas/.travis/osx/OpenBLAS/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/osx/OpenBLAS/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/gonum/install.sh b/blas/.travis/osx/gonum/install.sh deleted file mode 100644 index 266fa0ca..00000000 --- a/blas/.travis/osx/gonum/install.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/gonum/test.sh b/blas/.travis/osx/gonum/test.sh deleted file mode 100644 index 37dc167d..00000000 --- a/blas/.travis/osx/gonum/test.sh +++ /dev/null @@ -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 diff --git a/blas/.travis/osx/install.sh b/blas/.travis/osx/install.sh deleted file mode 100644 index 0403e7c8..00000000 --- a/blas/.travis/osx/install.sh +++ /dev/null @@ -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 diff --git a/lapack/.travis/check-generate.sh b/lapack/.travis/check-generate.sh deleted file mode 100755 index d25efa7f..00000000 --- a/lapack/.travis/check-generate.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -set -ex - -go generate github.com/gonum/lapack/cgo/lapacke -if [ -n "$(git diff)" ]; then - exit 1 -fi diff --git a/lapack/.travis/linux/ATLAS/install.sh b/lapack/.travis/linux/ATLAS/install.sh deleted file mode 100644 index 9c93a053..00000000 --- a/lapack/.travis/linux/ATLAS/install.sh +++ /dev/null @@ -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 diff --git a/lapack/.travis/linux/OpenBLAS/install.sh b/lapack/.travis/linux/OpenBLAS/install.sh deleted file mode 100644 index bddd62df..00000000 --- a/lapack/.travis/linux/OpenBLAS/install.sh +++ /dev/null @@ -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 diff --git a/lapack/.travis/linux/gonum/install.sh b/lapack/.travis/linux/gonum/install.sh deleted file mode 100644 index 4ebb7009..00000000 --- a/lapack/.travis/linux/gonum/install.sh +++ /dev/null @@ -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 diff --git a/matrix/.travis/check-generate.sh b/matrix/.travis/check-generate.sh deleted file mode 100755 index 446d5d95..00000000 --- a/matrix/.travis/check-generate.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -go generate github.com/gonum/matrix -if [ -n "$(git diff)" ]; then - exit 1 -fi