-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathazure-pipelines.yml
65 lines (56 loc) · 1.32 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
# This pipeline builds SimCenterCommon and package it using Conan
trigger:
- master
- azure-pipelines
- release*
- stable*
- conan
pr:
- master
strategy:
matrix:
linux:
imageName: "ubuntu-18.04"
CONAN_GCC_VERSIONS: 7
CONAN_CLANG_VERSIONS: ""
macOSXCatalina:
imageName: "macos-10.15"
CONAN_APPLE_CLANG_VERSIONS: 11.0
macOSXMojave:
imageName: "macos-10.14"
CONAN_APPLE_CLANG_VERSIONS: 10.0
windows:
imageName: "vs2017-win2016"
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MD
maxParallel: 4
pool:
vmImage: $(imageName)
variables:
- group: ConanVariables
- name: CONAN_OPTIONS
value: "SimCenterCommonQt:withQt=True"
- name: CONAN_LOGIN_USERNAME
value: $(BintrayUsername)
steps:
# Use Python version
- task: UsePythonVersion@0
displayName: Switch to Python 3.7
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
- script: |
pip install wheel
pip install conan --upgrade
pip install conan_package_tools bincrafters_package_tools
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
displayName: Conan Installation
failOnStderr: false
- script: |
conan user
python build.py
displayName: Conan Packaging
failOnStderr: false
env:
CONAN_PASSWORD: $(BintrayAPIKey)