language: python
matrix:
  include:
  - os: linux
    env:
    - PY=2.7
    - NUMPYSPEC=numpy
  - os: osx
    language: generic
    env:
    - PY=2.7
    - NUMPYSPEC=numpy
branches:
  only:
  - master
addons:
  apt:
    packages:
    - opencl-headers
    - fglrx
    - libblas-dev
    - libatlas-dev
    - libatlas-base-dev
    - liblapack-dev
    - gfortran
    - libhdf5-serial-dev
before_install:
- echo $TRAVIS_OS_NAME
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
  -O miniconda.sh; sudo apt-get update; sudo apt-get install python-pyopencl; elif
  [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
  -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda update --yes conda
- conda info -a
- conda install --yes python=$PY $NUMPYSPEC scipy cython pylint wxpython
install:
- pip install -r build_tools/requirements.txt
- pip install matplotlib
script:
- cd ..
- export WORKSPACE=$(pwd)
- git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels
- git clone --depth=50 --branch=master https://github.com/bumps/bumps.git
- ls -ltr
- if [ ! -d "utils" ]; then mkdir utils; fi
- /bin/sh -xe sasview/build_tools/travis_build.sh
- export LC_ALL=en_US.UTF-8
- export LANG=en_US.UTF-8
notifications:
  slack:
    secure: JSjANbnt+zlf1h7a32k7gQ256x0aWxSZ5ngX2l8vcnOqPQdxzdIlaQ0Z17gC78+kGOyJZHxMvDGergXuqmRGgG5VObbDA8AI9gl9DZPczWFdRV/r/TOULwXY0vz+ZsoKgafS+waQSud9ps0de8elQo1eFQTHjWRLQuLlWeDuDzo=
