forked from NHERI-SimCenter/GroundMotionUtilities
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
88 lines (76 loc) · 1.81 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
88
# Ant
# Build your Java projects and run tests with Apache Ant.
# Add steps that save build artifacts and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master
- azure-pipelines
- release*
- stable*
pr:
- master
strategy:
matrix:
linux:
imageName: "ubuntu-18.04"
CONAN_GCC_VERSIONS: 7
CONAN_CLANG_VERSIONS: ""
macHighSierra:
imageName: "macos-10.13"
CONAN_APPLE_CLANG_VERSIONS: 10.0
macMojave:
imageName: "macos-10.14"
CONAN_APPLE_CLANG_VERSIONS: 11.0
windows:
imageName: "vs2017-win2016"
CONAN_VISUAL_VERSIONS: 15
maxParallel: 1
pool:
vmImage: $(imageName)
variables:
- group: ConanVariables
steps:
# Maven
# Build, test, and deploy with Apache Maven
- task: Maven@3
inputs:
mavenPomFile: 'EQHazard/pom.xml'
goals: 'package'
javaHomeOption: 'JDKVersion'
jdkVersionOption: 'default'
jdkArchitectureOption: 'x64'
# CMake
# Build with the CMake cross-platform build system
- task: CMake@1
displayName: CMake Configuration
inputs:
workingDirectory: 'build'
cmakeArgs: '..'
# CMake
# Build with the CMake cross-platform build system
- task: CMake@1
displayName: CMake Build
inputs:
workingDirectory: 'build'
cmakeArgs: '--build .'
# 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
displayName: Conan Installation
failOnStderr: false
- script: |
conan user
python build.py
displayName: Conan Packaging
failOnStderr: false
env:
CONAN_PASSWORD: $(BintrayAPIKey)
CONAN_LOGIN_USERNAME: $(BintrayUsername)