forked from reyery/Daysim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
182 lines (171 loc) · 3.53 KB
/
.gitlab-ci.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
stages:
- build
- test
- package
build:mac:gcc:
stage: build
tags:
- gcc
- mac
variables:
CMAKE_OSX_ARCHITECTURES: x86_64
MACOSX_DEPLOYMENT_TARGET: "10.7"
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
before_script:
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin
script:
- mkdir build
- cd build
- cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release ..
- cmake ..
- make -j8
artifacts:
expire_in: 2 hrs
paths:
- build/
build:mac:clang:
stage: build
tags:
- clang
- mac
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CMAKE_OSX_ARCHITECTURES: x86_64
MACOSX_DEPLOYMENT_TARGET: "10.7"
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
before_script:
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin
script:
- mkdir build
- cd build
- cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release ..
- cmake ..
- make -j8
artifacts:
expire_in: 2 hrs
paths:
- build/
build:ubuntu:
stage: build
tags:
- ubuntu
before_script:
- export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j8
artifacts:
expire_in: 2 hrs
paths:
- build/
build:windows:
stage: build
tags:
- vs2017
- windows
before_script:
- set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin
script:
- mkdir build
- cd build
- '"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" -DBUILD_LIBTIFF=ON ..'
- '"C:\Program Files\CMake\bin\cmake.exe" ..'
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target ALL_BUILD'
artifacts:
expire_in: 2 hrs
paths:
- build/
test:mac:gcc:
stage: test
tags:
- gcc
- mac
dependencies:
- build:mac:gcc
script:
- cd build
- ctest
test:mac:clang:
stage: test
tags:
- clang
- mac
dependencies:
- build:mac:clang
script:
- cd build
- ctest
test:ubuntu:
stage: test
tags:
- ubuntu
dependencies:
- build:ubuntu
script:
- cd build
- ctest
test:windows:
stage: test
tags:
- windows
dependencies:
- build:windows
script:
- cd build
- '"C:\Program Files\CMake\bin\ctest.exe"'
package:mac:
stage: package
tags:
- clang
- mac
dependencies:
- build:mac:clang
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CMAKE_OSX_ARCHITECTURES: x86_64
MACOSX_DEPLOYMENT_TARGET: "10.7"
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
before_script:
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin
script:
- cd build
- make package -j8
artifacts:
expire_in: 1 mos
paths:
- build/radiance-*.dmg
package:ubuntu:
stage: package
tags:
- ubuntu
dependencies:
- build:ubuntu
before_script:
- export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin
script:
- cd build
- make package -j8
artifacts:
expire_in: 1 mos
paths:
- build/radiance-*.tar.gz
package:windows:
stage: package
tags:
- vs2017
- windows
dependencies:
- build:windows
before_script:
- set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin
script:
- cd build
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target PACKAGE'
artifacts:
expire_in: 1 mos
paths:
- build/radiance-*.exe