Osx travis
adding osX travis CI
# from https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
# FIXME: enable dist-mode
-sudo: required
-
-language: python
-
-python:
- # We don't actually use the Travis Python, but this keeps it organized.
- - "2.7"
- # - "3.5"
- - "3.6"
+matrix:
+ include:
+ - name: "Linux-Py2"
+ os: linux
+ env: MINICONDA=Miniconda2-latest-Linux-x86_64.sh
+ - name: "Linux-Py3"
+ os: linux
+ env: MINICONDA=Miniconda3-latest-Linux-x86_64.sh
+ - name: "OsX-Py2"
+ os: osx
+ osx_image: xcode8
+ env:
+ - MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
+ - MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh
+ - MACOSX_DEPLOYMENT_TARGET="10.9"
+ - name: "OsX-Py3"
+ os: osx
+ osx_image: xcode8
+ env:
+ - MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
+ - MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh
+ - MACOSX_DEPLOYMENT_TARGET="10.9"
install:
- - sudo apt-get update
- # We do this conditionally because it saves us some downloading if the
- # version is the same.
- - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- else
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- fi
+ - wget https://repo.continuum.io/miniconda/$MINICONDA -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
@@ -28,8 +34,10 @@ install:
- conda info -a
# create conda env with all our deps
- - conda create -q -n D4P -c intel -c conda-forge python=$TRAVIS_PYTHON_VERSION mpich tbb-devel daal daal-include cython jinja2 numpy
+ - conda create -q -n D4P -c intel -c conda-forge mpich tbb-devel daal daal-include cython jinja2 numpy
- source activate D4P
+ - gcc -v
+ - g++ -v
- DAALROOT=$CONDA_PREFIX TBBROOT=$CONDA_PREFIX MPIROOT=$CONDA_PREFIX python setup.py install
script:
