|
|
|
|
@ -32,12 +32,8 @@ steps: |
|
|
|
|
displayName: 'Install dependencies on Windows' |
|
|
|
|
|
|
|
|
|
# Switch to the build directory |
|
|
|
|
- task: Bash@3 |
|
|
|
|
inputs: |
|
|
|
|
targetType: 'inline' |
|
|
|
|
script: ' |
|
|
|
|
mkdir build; |
|
|
|
|
cd build' |
|
|
|
|
- bash: | |
|
|
|
|
mkdir build |
|
|
|
|
displayName: 'Switch to build directory' |
|
|
|
|
|
|
|
|
|
# Do the actual build |
|
|
|
|
@ -45,11 +41,13 @@ steps: |
|
|
|
|
- bash: | |
|
|
|
|
cmake .. -DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_CPPUNIT=ON -DDEBUG_COMPILE=ON |
|
|
|
|
make -j `grep processor /proc/cpuinfo | tail -c 2` |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Linux' ) |
|
|
|
|
displayName: 'Build on Linux' |
|
|
|
|
# macOS |
|
|
|
|
- bash: | |
|
|
|
|
echo !!!TODO!!! |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Darwin' ) |
|
|
|
|
displayName: 'Build on macOS' |
|
|
|
|
# Windows |
|
|
|
|
@ -58,6 +56,7 @@ steps: |
|
|
|
|
cmake .. |
|
|
|
|
make |
|
|
|
|
../windows-setup/build-setup.sh |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' ) |
|
|
|
|
displayName: 'Build on Windows' |
|
|
|
|
|
|
|
|
|
@ -65,15 +64,18 @@ steps: |
|
|
|
|
# Linux |
|
|
|
|
- bash: | |
|
|
|
|
ctest |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Linux' ) |
|
|
|
|
displayName: 'Run tests on Linux' |
|
|
|
|
# macOS |
|
|
|
|
- bash: | |
|
|
|
|
echo !!!TODO!!! |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Darwin' ) |
|
|
|
|
displayName: 'Run tests on macOS' |
|
|
|
|
# Windows |
|
|
|
|
- bash: | |
|
|
|
|
echo !!!TODO!!! |
|
|
|
|
workingDirectory: ./build |
|
|
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' ) |
|
|
|
|
displayName: 'Run tests on Windows' |