From 0d8e19f18e617e0d27f11bb161a4344ba29b7ca6 Mon Sep 17 00:00:00 2001 From: Greg Landrum Date: Sat, 5 Oct 2019 08:23:52 +0200 Subject: [PATCH] first attempt at a Azure DevOps windows java build --- .azure-pipelines/vs_build_java.yml | 47 ++++++++++++++++++++++++++++++ azure-pipelines.yml | 11 +++++++ 2 files changed, 58 insertions(+) create mode 100644 .azure-pipelines/vs_build_java.yml diff --git a/.azure-pipelines/vs_build_java.yml b/.azure-pipelines/vs_build_java.yml new file mode 100644 index 000000000..119291a68 --- /dev/null +++ b/.azure-pipelines/vs_build_java.yml @@ -0,0 +1,47 @@ +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 cmake ^ + eigen swig + displayName: Install dependencies- script: | + 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_BUILD_CPP_TESTS=OFF ^ + -DRDK_BUILD_PYTHON_WRAPPERS=OFF ^ + -DRDK_USE_BOOST_REGEX=OFF ^ + -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=ON ^ + -DRDK_SWIG_STATIC=OFF ^ + -DRDK_TEST_MULTITHREADED=ON + 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 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..8a3ef37cc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,3 +60,14 @@ jobs: target_platform: 10.9 steps: - template: .azure-pipelines/mac_build_java.yml +- job: Windows_VS2017_x64_java + 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_java.yml