5252 - MINCONDA_VERSION="latest"
5353 - MINCONDA_LINUX="Linux-x86_64"
5454 - MINCONDA_OSX="MacOSX-x86_64"
55+ before_install :
56+ - |
57+ # Configure build variables
58+ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
59+ if [[ "$COMPILER" == "gcc" ]]; then
60+ export CXX=g++-$GCC CC=gcc-$GCC;
61+ fi
62+ if [[ "$COMPILER" == "clang" ]]; then
63+ export CXX=clang++-$CLANG CC=clang-$CLANG;
64+ fi
65+ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
66+ export CXX=clang++ CC=clang PYTHONHOME=$HOME/miniconda;
67+ fi
68+
5569install :
5670 # Define the version of miniconda to download
5771 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
@@ -67,21 +81,17 @@ install:
6781 - conda update -q conda
6882 # Useful for debugging any issues with conda
6983 - conda info -a
70- - conda install xtensor==0.8.0 pytest numpy pybind11==2.1.0 -c conda-forge
71- - cp -r $TRAVIS_BUILD_DIR/include/* $HOME/miniconda/include/
84+ - conda install xtensor==0.8.1 pytest numpy pybind11==2.1.0 -c conda-forge
85+ - cd test
86+ - conda env create -f ./test-environment.yml
87+ - source activate test-xtensor-python
88+ - cd ..
89+ - cmake -DBUILD_TESTS=ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda .
90+ - make -j2 test_xtensor_python
91+ - make install
7292
7393script :
74- - |
75- # Configure build variables
76- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
77- if [[ "$COMPILER" == "gcc" ]]; then
78- export CXX=g++-$GCC CC=gcc-$GCC;
79- fi
80- if [[ "$COMPILER" == "clang" ]]; then
81- export CXX=clang++-$CLANG CC=clang-$CLANG;
82- fi
83- elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
84- export CXX=clang++ CC=clang;
85- fi
8694 - py.test -s
95+ - cd test
96+ - ./test_xtensor_python
8797
0 commit comments