language: go
sudo: false

os:
  - linux
  - osx

before_install:
  - curl https://ready-steady.github.io/travis/install_gfortran.sh | bash

install:
  - go get -d -t ./...
  - make install
  - go test -v

notifications:
  email: false

addons:
  apt:
    packages:
      - gfortran

language: go
sudo: false

os:
  - linux
  - osx

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      export CGO_LDFLAGS="-L$(dirname $(find $(brew --prefix) -name libgfortran.dylib | grep -v i386))";
      echo $CGO_LDFLAGS;
    fi

install:
  - echo $CGO_LDFLAGS
  - go get -d -t ./...
  - make install

script:
  - echo $CGO_LDFLAGS
  - go test -v

notifications:
  email: false

addons:
  apt:
    packages:
      - gfortran

Make an attempt to fix gfortran on OS X
Make an attempt to fix gfortran on OS X
