forked from NHERI-SimCenter/WE-UQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
154 lines (128 loc) · 4.2 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
version: 1.0.{build}
image:
- macOS
- Ubuntu1804
- Visual Studio 2019
stack: python 3.7
for:
# macOS
-
matrix:
only:
- image: macOS
clone_folder: ~/SimCenter
init:
- export PATH="$HOME/Qt/5.15.2/clang_64/bin:$HOME/venv3.9/bin:$PATH"
- python --version
- python -m pip install --upgrade pip
- pip install conan
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
install:
- uname
- git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/WE-UQ.git
build_script:
# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
# build WE-UQ
- cd WE-UQ
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
test_script:
- qmake --version
- gcc --version
- python --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
- sudo update-alternatives --set gcc /usr/bin/gcc-9
- sudo apt-get update
- sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libblas-dev liblapack-dev
- python -m pip install --upgrade pip
- pip install conan
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
- git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/WE-UQ.git
build_script:
# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..
# build WE-UQ
- cd WE-UQ
- chmod 'u+x' makeEXE.sh
- ls
- ./makeEXE.sh
- cd ..
test_script:
- qmake --version
- gcc --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
- 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: git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/WE-UQ.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 .. -G "Visual Studio 16 2019"
- cmd: cmake --build . --config Release
- cmd: cmake --install .
- cmd: cd ..
- cmd: cd ..
#
# build WE-UQ
#
# first UI
- cmd: cd WE-UQ
- cmd: mkdir build
- cmd: cd build
- cmd: conan install .. --build missing
- cmd: qmake ..\WE-UQ.pro
- cmd: nmake
- cmd: cd ..
- cmd: cd ..
test_script:
-cmd: python --version