github.com/gonum/lapack@v0.0.0-20181123203213-e4cdc5a0bff9/.travis.yml (about)

     1  sudo: required
     2  
     3  language: go
     4  
     5  env:
     6    matrix:
     7    - BLAS_LIB=OpenBLAS
     8    - BLAS_LIB=gonum
     9    # Does not currently link correctly.  Note that there is an issue with drotgm in ATLAS.
    10    # - BLAS_LIB=ATLAS
    11    # If we can get multiarch builds on travis.
    12    # There are some issues with the Accellerate implementation.
    13    #- BLAS_LIB=Accellerate
    14  
    15  # Versions of go that are explicitly supported by gonum.
    16  go:
    17   - 1.5.4
    18   - 1.6.3
    19   - 1.7.3
    20  
    21  # Cache used to persist the compiled BLAS library between CI calls.
    22  cache:
    23    directories:
    24    - .travis/OpenBLAS.cache
    25  
    26  # Required for coverage.
    27  before_install:
    28   - go get golang.org/x/tools/cmd/cover
    29   - go get github.com/mattn/goveralls
    30   - go get github.com/cznic/cc
    31   - go get github.com/gonum/internal/binding
    32  
    33  # Install the appropriate BLAS library.
    34  install:
    35   - bash .travis/$TRAVIS_OS_NAME/$BLAS_LIB/install.sh
    36  
    37  # Get deps, build, test, and ensure the code is gofmt'ed.
    38  # If we are building as gonum, then we have access to the coveralls api key, so we can run coverage as well.
    39  script:
    40   - if [[ "$BLAS_LIB" == "gonum" ]]; then pushd native; fi
    41   - go get -d -t -v ./...
    42   - go build -v ./...
    43   - go test -v ./...
    44   - test -z "$(gofmt -d *.go)"
    45   - if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash -c "${TRAVIS_BUILD_DIR}/.travis/test-coverage.sh"; fi
    46   # This is run last since it alters the tree.
    47   - ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh