Debian Codegraph @

.azure-pipelines/vs_build.yml

raw
1 steps:
2 - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
3 displayName: Setup build environment
4 - script: |
5 conda config --set always_yes yes --set changeps1 no
6 conda info -a
7 conda create --name maeparser_build $(compiler) cmake ^
8 boost-cpp=$(boost_version) boost=$(boost_version) ^
9 py-boost=$(boost_version) libboost=$(boost_version)
10 displayName: Install dependencies
11 - script: |
12 set Boost_ROOT=
13 mkdir build && cd build
14 call activate maeparser_build
15 cmake .. ^
16 -G "Visual Studio 16 2019" ^
17 -DCMAKE_BUILD_TYPE=Release ^
18 -DMAEPARSER_RIGOROUS_BUILD=ON ^
19 -DBoost_NO_SYSTEM_PATHS=ON ^
20 -DCMAKE_INCLUDE_PATH=%CONDA_PREFIX%/Library/include ^
21 -DCMAKE_LIBRARY_PATH=%CONDA_PREFIX%/Library/lib ^
22 -DMAEPARSER_BUILD_SHARED_LIBS=$(shared_lib)
23 displayName: Configure build (Run CMake)
24 - script: |
25 call activate maeparser_build
26 cd build
27 cmake --build . --config Release -j $(number_of_cores)
28 displayName: Build
29 - script: |
30 call activate maeparser_build
31 cd build
32 ctest -j $(number_of_cores) --output-on-failure -T Test -C Release
33 displayName: Run tests
34 - task: PublishTestResults@2
35 inputs:
36 testResultsFormat: "CTest"
37 testResultsFiles: "build/Testing/*/Test.xml"
38 testRunTitle: $(system.phasedisplayname) CTest Test Run