mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
first attempt at a Azure DevOps windows java build
This commit is contained in:
47
.azure-pipelines/vs_build_java.yml
Normal file
47
.azure-pipelines/vs_build_java.yml
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user