Debian Codegraph @

.azure-pipelines/linux_build.yml

raw
1 steps:
2 - bash: |
3 source ${CONDA}/etc/profile.d/conda.sh
4 sudo chown -R ${USER} ${CONDA}
5 conda config --set always_yes yes --set changeps1 no
6 conda update -q conda
7 conda info -a
8 conda create --name maeparser_build $(compiler) cmake \
9 boost-cpp=$(boost_version) boost=$(boost_version) \
10 libboost=$(boost_version) zlib
11 displayName: Setup build environment
12 - bash: |
13 source ${CONDA}/etc/profile.d/conda.sh
14 conda activate maeparser_build
15 mkdir build && cd build && \
16 cmake .. \
17 -DCMAKE_BUILD_TYPE=Release \
18 -DMAEPARSER_RIGOROUS_BUILD=ON \
19 -DBoost_NO_SYSTEM_PATHS=ON \
20 -DCMAKE_INCLUDE_PATH="${CONDA_PREFIX}/include" \
21 -DCMAKE_LIBRARY_PATH="${CONDA_PREFIX}/lib" \
22 -DMAEPARSER_BUILD_SHARED_LIBS=$(shared_lib)
23 displayName: Configure build (Run CMake)
24 - bash: |
25 source ${CONDA}/etc/profile.d/conda.sh
26 conda activate maeparser_build
27 cd build
28 make -j $( $(number_of_cores) )
29 displayName: Build
30 - bash: |
31 source ${CONDA}/etc/profile.d/conda.sh
32 conda activate maeparser_build
33 cd build
34 ctest -j $( $(number_of_cores) ) --output-on-failure -T Test
35 displayName: Run tests
36 - task: PublishTestResults@2
37 inputs:
38 testResultsFormat: "CTest"
39 testResultsFiles: "build/Testing/*/Test.xml"
40 testRunTitle: $(system.phasedisplayname) CTest Test Run