From fc3f0464dc593bb3d2c01ede537a620c1a7867a2 Mon Sep 17 00:00:00 2001 From: Greg Landrum Date: Thu, 31 Oct 2019 05:50:53 +0100 Subject: [PATCH] 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 --- .azure-pipelines/vs_build_dll.yml | 55 +++++++++++++++++++++++++++++++ azure-pipelines.yml | 11 +++++++ 2 files changed, 66 insertions(+) create mode 100644 .azure-pipelines/vs_build_dll.yml diff --git a/.azure-pipelines/vs_build_dll.yml b/.azure-pipelines/vs_build_dll.yml new file mode 100644 index 000000000..63e649642 --- /dev/null +++ b/.azure-pipelines/vs_build_dll.yml @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9175fa876..d7b4454a4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: