-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
164 lines (138 loc) · 4.65 KB
/
appveyor.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
version: 4.0.{build}
image:
- Visual Studio 2019
- macOS
- Ubuntu1804
stack: python 3.8
for:
# macOS
-
matrix:
only:
- image: macOS
clone_folder: ~/SimCenter
init:
- export PATH="$HOME/Qt/5.15.2/clang_64/bin:$HOME/venv3.8/bin:$PATH"
- python3 -m pip install --upgrade pip
- pip install conan==1.60.1
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
install:
- uname
- rm -rf HydroUQ
- rm -rf SimCenterBackendApplications
- rm -rf SimCenterCommon
- git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- git clone https://github.com/JustinBonus/SimCenterCommon.git
- git clone https://github.com/JustinBonus/HydroUQ.git
build_script:
# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
# build HydroUQ
- cd HydroUQ
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
test_script:
- qmake --version
- gcc --version
- python --version
- python3 --version
# Ubuntu1804
-
matrix:
only:
- image: Ubuntu1804
clone_folder: ~/SimCenter
init:
- export PATH="$HOME/Qt/5.15.2/gcc_64/bin:$HOME/venv3.8.6/bin:$PATH"
- export PATH="/home/appveyor/.local/bin:$PATH"
install:
- uname
- rm -rf HydroUQ
- rm -rf SimCenterBackendApplications
- rm -rf SimCenterCommon
- sudo update-alternatives --set gcc /usr/bin/gcc-8
- sudo apt-get update
- sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libblas-dev liblapack-dev
- python3 -m pip install --upgrade pip
- pip install conan==1.60.1
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
- git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- git clone https://github.com/JustinBonus/SimCenterCommon.git
- git clone https://github.com/JustinBonus/HydroUQ.git
build_script:
# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
# build HydroUQ
- cd HydroUQ
- chmod 'u+x' makeEXE.sh
- ls
- ./makeEXE.sh
- cd ..
test_script:
- qmake --version
- gcc --version
- python3 --version
- python --version
# Visual Studio 2019
-
matrix:
only:
- image: Visual Studio 2019
clone_folder: c:\projects\SimCenter
init:
- cmd: set PYTHON=C:\PYTHON38-x64
- cmd: set PYTHONNET_PYDLL=%PYTHON%\python3.8.dll
- cmd: set QT=C:\Qt\5.15.2\msvc2019_64\bin
- cmd: set PATH=%PYTHON%;%PYTHON%\Scripts;%QT%;%PATH%
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: pip.exe install conan==1.60.1
- cmd: conan user
- cmd: conan profile new default --detect
- cmd: conan profile show default
- cmd: conan profile update settings.compiler="Visual Studio" default
- cmd: conan profile update settings.compiler.version="16" default
- cmd: conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
- cmd: echo %PATH%
install:
- cmd: rm -rf HydroUQ
- cmd: rm -rf SimCenterBackendApplications
- cmd: rm -rf SimCenterCommon
- cmd: git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- cmd: git clone https://github.com/JustinBonus/SimCenterCommon.git
- cmd: git clone https://github.com/JustinBonus/HydroUQ.git
- cmd: dir
build_script:
# build simcenter backend
- cmd: dir
- cmd: cd SimCenterBackendApplications
- cmd: mkdir build
- cmd: cd build
- cmd: conan install .. --build missing
- cmd: cmake -DCMAKE_CXX_STANDARD=17-DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF .. -G "Visual Studio 16 2019"
- cmd: cmake --build . --config Release
- cmd: cmake --install .
- cmd: cd ..
- cmd: cd ..
#
# build HydroUQ
#
# first UI
- cmd: cd HydroUQ
- cmd: mkdir build
- cmd: cd build
- cmd: conan install .. --build missing
- cmd: qmake ..\Hydro-UQ.pro
- cmd: nmake
- cmd: cd ..
- cmd: cd ..
test_script:
- cmd: python --version