forked from rdkit/rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs_build.yml
74 lines (74 loc) · 2.54 KB
/
vs_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Setup build environment
- script: |
conda config --set always_yes yes --set changeps1 no
conda info -a
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda create --name rdkit_build ^
boost-cpp=$(boost_version) boost=$(boost_version) ^
py-boost=$(boost_version) libboost=$(boost_version) ^
numpy matplotlib=3.8 cairo pillow eigen pandas=2.1
call activate rdkit_build
conda install -c conda-forge sphinx myst-parser ipython=8.20 jupyter pytest nbval
conda install -c conda-forge cmake
displayName: Install dependencies
- script: |
set Boost_ROOT=
mkdir build && cd build
call activate rdkit_build
cmake .. ^
-G "Visual Studio 16 2019" ^
-DCMAKE_BUILD_TYPE=Release ^
-DRDK_INSTALL_INTREE=ON ^
-DRDK_INSTALL_STATIC_LIBS=OFF ^
-DRDK_BUILD_CPP_TESTS=ON ^
-DRDK_BUILD_PYTHON_WRAPPERS=ON ^
-DRDK_BUILD_COORDGEN_SUPPORT=ON ^
-DRDK_BUILD_MAEPARSER_SUPPORT=ON ^
-DRDK_OPTIMIZE_POPCNT=ON ^
-DRDK_BUILD_TEST_GZIP=ON ^
-DRDK_BUILD_FREESASA_SUPPORT=ON ^
-DRDK_BUILD_AVALON_SUPPORT=ON ^
-DRDK_BUILD_INCHI_SUPPORT=ON ^
-DRDK_BUILD_YAEHMOP_SUPPORT=ON ^
-DRDK_BUILD_XYZ2MOL_SUPPORT=ON ^
-DRDK_BUILD_CAIRO_SUPPORT=ON ^
-DRDK_BUILD_THREADSAFE_SSS=ON ^
-DRDK_BUILD_SWIG_WRAPPERS=OFF ^
-DRDK_BUILD_CFFI_LIB=ON ^
-DRDK_SWIG_STATIC=OFF ^
-DRDK_TEST_MULTITHREADED=ON ^
-DRDK_BOOST_PYTHON3_NAME=$(python_name) ^
-DBoost_NO_BOOST_CMAKE=TRUE ^
-DCMAKE_INCLUDE_PATH=%CONDA_PREFIX%/Library/include ^
-DCMAKE_LIBRARY_PATH="%CONDA_PREFIX%/Library/lib
displayName: Configure build (Run CMake)
- script: |
call activate rdkit_build
cd build
cmake --build . --config Release --target install -j $(number_of_cores)
displayName: Build
- script: |
call activate rdkit_build
set RDBASE=%cd%
set PYTHONPATH=%RDBASE%;%PYTHONPATH%
set PATH=%RDBASE%\lib;%PATH%
cd build
ctest -C Release -j $(number_of_cores) --output-on-failure -T Test
displayName: Run tests
- script: |
call activate rdkit_build
conda install -c conda-forge sphinx myst-parser
set RDBASE=%cd%
set PYTHONPATH=%RDBASE%;%PYTHONPATH%
set PATH=%RDBASE%\lib;%PATH%
cd Docs/Book
make doctest
displayName: Run documentation tests
- task: PublishTestResults@2
inputs:
testResultsFormat: 'CTest'
testResultsFiles: 'build/Testing/*/Test.xml'
testRunTitle: $(system.phasedisplayname) CTest Test Run