1 |
stages: |
2 |
- build |
3 |
- test |
4 |
- package |
5 |
|
6 |
build:mac:gcc: |
7 |
stage: build |
8 |
tags: |
9 |
- gcc |
10 |
- mac |
11 |
variables: |
12 |
CMAKE_OSX_ARCHITECTURES: x86_64 |
13 |
MACOSX_DEPLOYMENT_TARGET: "10.7" |
14 |
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk |
15 |
before_script: |
16 |
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin |
17 |
script: |
18 |
- mkdir build |
19 |
- cd build |
20 |
- cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release .. |
21 |
- cmake .. |
22 |
- make -j8 |
23 |
artifacts: |
24 |
expire_in: 2 hrs |
25 |
paths: |
26 |
- build/ |
27 |
|
28 |
build:mac:clang: |
29 |
stage: build |
30 |
tags: |
31 |
- clang |
32 |
- mac |
33 |
variables: |
34 |
CC: /usr/bin/clang |
35 |
CXX: /usr/bin/clang++ |
36 |
CMAKE_OSX_ARCHITECTURES: x86_64 |
37 |
MACOSX_DEPLOYMENT_TARGET: "10.7" |
38 |
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk |
39 |
before_script: |
40 |
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin |
41 |
script: |
42 |
- mkdir build |
43 |
- cd build |
44 |
- cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release .. |
45 |
- cmake .. |
46 |
- make -j8 |
47 |
artifacts: |
48 |
expire_in: 2 hrs |
49 |
paths: |
50 |
- build/ |
51 |
|
52 |
build:ubuntu: |
53 |
stage: build |
54 |
tags: |
55 |
- ubuntu |
56 |
before_script: |
57 |
- export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin |
58 |
script: |
59 |
- mkdir build |
60 |
- cd build |
61 |
- cmake -DCMAKE_BUILD_TYPE=Release .. |
62 |
- make -j8 |
63 |
artifacts: |
64 |
expire_in: 2 hrs |
65 |
paths: |
66 |
- build/ |
67 |
|
68 |
build:windows: |
69 |
stage: build |
70 |
tags: |
71 |
- vs2017 |
72 |
- windows |
73 |
before_script: |
74 |
- set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin |
75 |
script: |
76 |
- mkdir build |
77 |
- cd build |
78 |
- '"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" -DBUILD_LIBTIFF=ON ..' |
79 |
- '"C:\Program Files\CMake\bin\cmake.exe" ..' |
80 |
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target ALL_BUILD' |
81 |
artifacts: |
82 |
expire_in: 2 hrs |
83 |
paths: |
84 |
- build/ |
85 |
|
86 |
test:mac:gcc: |
87 |
stage: test |
88 |
tags: |
89 |
- gcc |
90 |
- mac |
91 |
dependencies: |
92 |
- build:mac:gcc |
93 |
script: |
94 |
- cd build |
95 |
- ctest |
96 |
|
97 |
test:mac:clang: |
98 |
stage: test |
99 |
tags: |
100 |
- clang |
101 |
- mac |
102 |
dependencies: |
103 |
- build:mac:clang |
104 |
script: |
105 |
- cd build |
106 |
- cd resources |
107 |
- ruby test_lib.rb -c |
108 |
- ruby test_lib.rb |
109 |
|
110 |
test:ubuntu: |
111 |
stage: test |
112 |
tags: |
113 |
- ubuntu |
114 |
dependencies: |
115 |
- build:ubuntu |
116 |
script: |
117 |
- cd build |
118 |
- cd resources |
119 |
- ruby test_lib.rb -c |
120 |
- ruby test_lib.rb |
121 |
|
122 |
test:windows: |
123 |
stage: test |
124 |
tags: |
125 |
- windows |
126 |
dependencies: |
127 |
- build:windows |
128 |
script: |
129 |
- cd build |
130 |
- cd resources |
131 |
- ruby test_lib.rb -c |
132 |
- ruby test_lib.rb |
133 |
|
134 |
package:mac: |
135 |
stage: package |
136 |
tags: |
137 |
- clang |
138 |
- mac |
139 |
dependencies: |
140 |
- build:mac:clang |
141 |
variables: |
142 |
CC: /usr/bin/clang |
143 |
CXX: /usr/bin/clang++ |
144 |
CMAKE_OSX_ARCHITECTURES: x86_64 |
145 |
MACOSX_DEPLOYMENT_TARGET: "10.7" |
146 |
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk |
147 |
before_script: |
148 |
- export PATH=$PATH:~/Qt/5.10.0/clang_64/bin |
149 |
script: |
150 |
- cd build |
151 |
- make package -j8 |
152 |
artifacts: |
153 |
expire_in: 1 mos |
154 |
paths: |
155 |
- build/radiance-*.dmg |
156 |
|
157 |
package:ubuntu: |
158 |
stage: package |
159 |
tags: |
160 |
- ubuntu |
161 |
dependencies: |
162 |
- build:ubuntu |
163 |
before_script: |
164 |
- export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin |
165 |
script: |
166 |
- cd build |
167 |
- make package -j8 |
168 |
artifacts: |
169 |
expire_in: 1 mos |
170 |
paths: |
171 |
- build/radiance-*.tar.gz |
172 |
|
173 |
package:windows: |
174 |
stage: package |
175 |
tags: |
176 |
- vs2017 |
177 |
- windows |
178 |
dependencies: |
179 |
- build:windows |
180 |
before_script: |
181 |
- set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin |
182 |
script: |
183 |
- cd build |
184 |
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target PACKAGE' |
185 |
artifacts: |
186 |
expire_in: 1 mos |
187 |
paths: |
188 |
- build/radiance-*.exe |