-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathazure-pipelines.yml
61 lines (52 loc) · 1.55 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
jobs:
- job: 'cppWindows'
pool:
vmImage: vs2017-win2016
displayName: 'C++ (Windows)'
strategy:
maxParallel: 2
matrix:
x64-Release:
buildPlatform: 'x64'
buildConfiguration: 'Release'
steps:
- checkout: self
submodules: recursive
- task: CMake@1
displayName: 'CMake .. -G "Visual Studio 15 2017 Win64"'
inputs:
workingDirectory: 'build'
cmakeArgs: '.. -G "Visual Studio 15 2017 Win64"'
- task: MSBuild@1
displayName: 'Build solution build/FishStore.sln'
inputs:
solution: 'build/FishStore.sln'
msbuildArguments: '/m /p:Configuration=$(buildConfiguration) /p:Platform=$(buildPlatform)'
- script: |
ctest -j 1 --interactive-debug-mode 0 --output-on-failure -C $(buildConfiguration) -R .*_test
workingDirectory: 'build'
displayName: 'Run Ctest'
- job: 'cppLinux'
pool:
vmImage: ubuntu-16.04
displayName: 'C++ (Linux)'
steps:
- checkout: self
submodules: recursive
- script: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y g++-7 libaio-dev uuid-dev libtbb-dev
displayName: 'Install depdendencies'
- script: |
export CXX='g++-7'
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
displayName: 'CMake Release Profile'
- script: 'make -j'
displayName: 'Compile'
workingDirectory: 'build'
- script: 'ctest -j 1 --interactive-debug-mode 0 --output-on-failure -R .*_test'
displayName: 'Run Tests'
workingDirectory: 'build'