-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor_bonus.yml
156 lines (131 loc) · 4.31 KB
/
appveyor_bonus.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
version: 3.1.{build}
image:
- macOS
- Ubuntu1804
- Visual Studio 2019
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.6/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
- git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- git clone https://github.com/NHERI-SimCenter/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"
- sudo apt-get -y install build-essential
- which python
- which python3
- sudo update-alternatives --set gcc /usr/bin/gcc-9
- 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
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/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
- python --version
- python3 --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: git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- cmd: git clone https://github.com/NHERI-SimCenter/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 .. -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
- cmd: python3 --version