forked from cityflow-project/CityFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
87 lines (80 loc) · 2.36 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
jobs:
- job: "linux"
strategy:
matrix:
python2.7_gcc5_c++11:
CXX: "g++-5"
c++std: "11"
packages: "gcc-5"
python.version: "2.7"
python3.5_gcc5_c++11:
displayName: "linux Python3.5, gcc 5, c++11"
CXX: "g++-5"
c++std: "11"
packages: "gcc-5"
python.version: "3.5"
python3.6_clang_c++14:
CXX: "clang++"
c++std: "14"
packages: "clang"
python.version: "3.6"
python3.7_gcc7_c++17:
CXX: "g++-7"
c++std: "17"
packages: "gcc-7"
python.version: "3.7"
pool:
vmImage: "ubuntu-16.04"
steps:
- script: sudo -E apt-add-repository -y ppa:deadsnakes/ppa
displayName: Update source
- script: sudo apt update && sudo apt install -y libboost-all-dev python$(python.version)-dev $(packages)
displayName: Install dependency
- script: mkdir build
displayName: Make build directory
- task: CMake@1
inputs:
workingDirectory: 'build'
cmakeArgs: >
-DPYBIND11_PYTHON_VERSION=$(python.version) \
-DCMAKE_CXX_STANDARD=11 \
..
displayName: CMake
- script: cd build && make -j`sysctl -n hw.ncpu`
displayName: Build the project
- job: "osx"
strategy:
matrix:
python2.7_clang_c++11:
CXX: "g++"
c++std: "11"
packages: ""
python.version: "2.7"
python3.7_gcc8_c++17:
CXX: "g++"
c++std: "17"
packages: "python3"
python.version: "3"
pool:
vmImage: 'macOS-10.13'
steps:
- script: brew update && brew install boost $(packages)
displayName: Install dependency
- script: mkdir build
displayName: Make build directory
- task: CMake@1
inputs:
workingDirectory: 'build'
cmakeArgs: >
-DPYBIND11_PYTHON_VERSION=$(python.version) \
-DCMAKE_CXX_STANDARD=11 \
..
displayName: CMake
- script: cd build && make -j`sysctl -n hw.ncpu`
displayName: Build the project