forked from NHERI-SimCenter/WE-UQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
110 lines (93 loc) · 3.31 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# 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
- release*
- conan
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
CONAN_VISUAL_RUNTIMES: MD,MDd
maxParallel: 4
pool:
vmImage: $(imageName)
steps:
# Use Python version
- task: UsePythonVersion@0
displayName: Switch to Python 3.7
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
- script: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install wheel
pip install conan --upgrade
conan user
conan remote add simcenter https://api.bintray.com/conan/nheri-simcenter/simcenter --insert 0
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
conan remote list
displayName: Conan Installation
- script: |
conan install qt/5.12.6@bincrafters/stable -o qt:qt3d=True -o qt:qtcharts=True -o qt:qttools=True -o qt:multiconfiguration=True -g virtualrunenv --build missing
displayName: Install Qt
- script: |
conan install . --build missing
mkdir build
cd build
conan install qt/5.12.6@bincrafters/stable -o qt:qt3d=True -o qt:qtcharts=True -o qt:qttools=True -o qt:multiconfiguration=True -g virtualrunenv
source activate_run.sh
qmake ../WE-UQ-conan.pro "CONFIG+=Release"
make Release
condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' ))
displayName: Build WE-UQ on Linux or MacOS
- script: |
conan install . --build missing
mkdir build
cd build
conan install qt/5.12.6@bincrafters/stable -o qt:qt3d=True -o qt:qtcharts=True -o qt:qttools=True -o qt:multiconfiguration=True -g virtualrunenv
call activate_run.bat
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
qmake ../WE-UQ-conan.pro "CONFIG+=Release"
nmake Release
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Build WE-UQ on Windows
- script: |
cd build
conan install qt/5.12.6@bincrafters/stable -o qt:qt3d=True -o qt:qtcharts=True -o qt:qttools=True -o qt:multiconfiguration=True -g virtualrunenv
source activate_run.sh
macdeployqt WE_UQ.app
zip -r WE-UQ_Mac.zip WE_UQ.app
condition: eq( variables['Agent.OS'], 'Darwin' )
displayName: Deploy Qt App on Mac
- script: |
cd build
conan install qt/5.12.6@bincrafters/stable -o qt:qt3d=True -o qt:qtcharts=True -o qt:qttools=True -o qt:multiconfiguration=True -g virtualrunenv
call activate_run.bat
mkdir WE-UQ
copy .\release\WE_UQ.exe WE-UQ
windeployqt WE-UQ\WE_UQ.exe
powershell Compress-Archive -Path WE-UQ -DestinationPath WE-UQ_Windows_Download.zip
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Deploy Qt App on Windows
- task: PublishPipelineArtifact@1
inputs:
targetPath: ./build/*.zip
displayName: Publish WE-UQ Artifacts