Do a windows DLL build as part of the Azure DevOps setup (#2743)

* first attempt at adding a windows DLL build

* - see if merging #2742 helps

* - 2nd attempt
This commit is contained in:
Greg Landrum
2019-10-31 05:50:53 +01:00
committed by GitHub
parent 1920b243e6
commit fc3f0464dc
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
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 create --name rdkit_build $(compiler) cmake ^
boost-cpp=$(boost_version) boost=$(boost_version) ^
py-boost=$(boost_version) libboost=$(boost_version) ^
numpy matplotlib cairo pillow eigen pandas
displayName: Install dependencies
- script: |
set Boost_ROOT=
mkdir build && cd build
call activate rdkit_build
cmake .. ^
-G "Visual Studio 15 2017 Win64" ^
-DCMAKE_BUILD_TYPE=Release ^
-DRDK_INSTALL_INTREE=ON ^
-DRDK_INSTALL_STATIC_LIBS=OFF ^
-DRDK_INSTALL_DLLS_MSVC=ON ^
-DRDK_BUILD_CPP_TESTS=ON ^
-DRDK_USE_BOOST_REGEX=ON ^
-DRDK_BUILD_COORDGEN_SUPPORT=ON ^
-DRDK_OPTIMIZE_NATIVE=ON ^
-DRDK_BUILD_TEST_GZIP=ON ^
-DRDK_BUILD_FREESASA_SUPPORT=OFF ^
-DRDK_BUILD_AVALON_SUPPORT=ON ^
-DRDK_BUILD_INCHI_SUPPORT=ON ^
-DRDK_BUILD_THREADSAFE_SSS=ON ^
-DRDK_BUILD_SWIG_WRAPPERS=OFF ^
-DRDK_SWIG_STATIC=OFF ^
-DRDK_TEST_MULTITHREADED=ON ^
-DRDK_BOOST_PYTHON3_NAME=$(python_name) ^
-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 -j $(number_of_cores) --output-on-failure -T Test
displayName: Run tests
- task: PublishTestResults@2
inputs:
testResultsFormat: 'CTest'
testResultsFiles: 'build/Testing/*/Test.xml'
testRunTitle: $(system.phasedisplayname) CTest Test Run

View File

@@ -37,6 +37,17 @@ jobs:
python_name: python37
steps:
- template: .azure-pipelines/vs_build.yml
- job: Windows_VS2017_x64_dll
timeoutInMinutes: 90
pool:
vmImage: vs2017-win2016
variables:
compiler: vs2017_win-64
boost_version: 1.67.0
number_of_cores: '%NUMBER_OF_PROCESSORS%'
python_name: python37
steps:
- template: .azure-pipelines/vs_build_dll.yml
- job: Ubuntu_16_04_x64_java
timeoutInMinutes: 90
pool: