language: generic
os:
  - linux
  - osx
env:
  global:
    - CONDA_PREFIX=$HOME/conda
    - MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda2-latest"
    - TRAVIS_PYTHON_VERSION="2.7"
sudo: false
before_install:
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      OS="MacOSX-x86_64"
    else
      OS="Linux-x86_64"
    fi
  - curl $MINICONDA_URL_BASE-$OS.sh > $HOME/miniconda.sh
  - bash $HOME/miniconda.sh -b -p $CONDA_PREFIX
  - export PATH="$CONDA_PREFIX/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda install python=$TRAVIS_PYTHON_VERSION
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      conda install gcc libgfortran cmake
    else
      conda install gfortran_linux-64 cmake
      export FC=$CONDA_PREFIX/bin/x86_64-conda_cos6-linux-gnu-gfortran
    fi
install:
  - mkdir _build && cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/../_install -DCMAKE_VERBOSE_MAKEFILE=True
  - make install
before_script:
  - source ../.ci/travis/update_rpaths.sh
script:
  - ctest

language: generic
os:
  - linux
  - osx
env:
  global:
    - CONDA_PREFIX=$HOME/conda
    - MINICONDA_URL_BASE="https://repo.continuum.io/miniconda/Miniconda3-latest"
    - TRAVIS_PYTHON_VERSION="3.*"
before_install:
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      OS="MacOSX-x86_64"
    else
      OS="Linux-x86_64"
    fi
  - curl $MINICONDA_URL_BASE-$OS.sh > $HOME/miniconda.sh
  - bash $HOME/miniconda.sh -b -p $CONDA_PREFIX
  - export PATH="$CONDA_PREFIX/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no --add channels conda-forge
  - conda install python=$TRAVIS_PYTHON_VERSION cmake fortran-compiler
  - conda activate root
install:
  - mkdir _build && cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
  - make
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      - source ../.ci/travis/update_rpaths.sh
    fi
  - make install
script:
  - ctest

Update Travis CI build file
Update Travis CI build file
