File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ install:
22
22
- conda update -q conda
23
23
- conda info -a
24
24
- conda install gtest cmake -c conda-forge
25
- - conda install pytest numpy pybind11==2.2.1 xtensor==0.19.0 -c conda-forge
25
+ - conda install pytest numpy pybind11==2.2.1 xtensor==0.19.2 -c conda-forge
26
26
- " set PYTHONHOME=%MINICONDA%"
27
27
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\Library -D BUILD_TESTS=ON -D PYTHON_EXECUTABLE=%MINICONDA%\\python.exe .
28
28
- nmake test_xtensor_python
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ install:
128
128
# Useful for debugging any issues with conda
129
129
- conda info -a
130
130
- conda install pytest numpy -c conda-forge
131
- - conda install cmake gtest -c conda-forge
131
+ - conda install cmake -c conda-forge
132
132
- |
133
133
if [[ "$PYBIND11_VERSION" == "master" ]]; then
134
134
conda_root=$(cd $(dirname $(which conda))/.. && pwd)
@@ -147,10 +147,11 @@ install:
147
147
else
148
148
conda install pybind11==${PYBIND11_VERSION} -c conda-forge
149
149
fi
150
- - conda install xtensor==0.19.0 -c conda-forge
151
- - cmake -D BUILD_TESTS =ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda -D PYTHON_EXECUTABLE=$PY_EXE .
150
+ - conda install xtensor==0.19.2 -c conda-forge
151
+ - cmake -D DOWNLOAD_GTEST =ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda -D PYTHON_EXECUTABLE=$PY_EXE .
152
152
- make -j2 test_xtensor_python
153
153
- make install
154
+ - rm -rf test/googletest-src
154
155
155
156
script :
156
157
- py.test -s
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ if (DOWNLOAD_GTEST OR GTEST_SRC_DIR)
68
68
# Add googletest directly to our build. This defines
69
69
# the gtest and gtest_main targets.
70
70
add_subdirectory (${CMAKE_CURRENT_BINARY_DIR} /googletest-src
71
- ${CMAKE_CURRENT_BINARY_DIR} /googletest-build )
71
+ ${CMAKE_CURRENT_BINARY_DIR} /googletest-build EXCLUDE_FROM_ALL )
72
72
73
73
set (GTEST_INCLUDE_DIRS "${gtest_SOURCE_DIR} /include" )
74
74
set (GTEST_BOTH_LIBRARIES gtest_main gtest )
@@ -87,13 +87,12 @@ set(XTENSOR_PYTHON_TESTS
87
87
test_pyvectorize.cpp
88
88
)
89
89
90
- set (XTENSOR_PYTHON_TARGET test_xtensor_python )
91
- add_executable (${XTENSOR_PYTHON_TARGET} ${XTENSOR_PYTHON_TESTS} ${XTENSOR_PYTHON_HEADERS} )
92
- target_link_libraries (${XTENSOR_PYTHON_TARGET} xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${PYTHON_LIBRARIES} )
90
+ add_executable (test_xtensor_python ${XTENSOR_PYTHON_TESTS} ${XTENSOR_PYTHON_HEADERS} )
91
+ target_link_libraries (test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${PYTHON_LIBRARIES} )
93
92
94
93
if (DOWNLOAD_GTEST OR GTEST_SRC_DIR )
95
- add_dependencies (${XTENSOR_PYTHON_TARGET} gtest_main )
94
+ add_dependencies (test_xtensor_python gtest_main )
96
95
endif ()
97
96
98
- add_custom_target (xtest COMMAND ./test_xtensor_python DEPENDS ${XTENSOR_PYTHON_TARGET} )
97
+ add_custom_target (xtest COMMAND ./test_xtensor_python DEPENDS test_xtensor_python )
99
98
You can’t perform that action at this time.
0 commit comments