ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/.gitlab-ci.yml
Revision: 1.1
Committed: Mon Jan 8 18:07:23 2018 UTC (6 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Log Message:
Added missed files from CMake update

File Contents

# Content
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 - ctest
107
108 test:ubuntu:
109 stage: test
110 tags:
111 - ubuntu
112 dependencies:
113 - build:ubuntu
114 script:
115 - cd build
116 - ctest
117
118 test:windows:
119 stage: test
120 tags:
121 - windows
122 dependencies:
123 - build:windows
124 script:
125 - cd build
126 - '"C:\Program Files\CMake\bin\ctest.exe"'
127
128 package:mac:
129 stage: package
130 tags:
131 - clang
132 - mac
133 dependencies:
134 - build:mac:clang
135 variables:
136 CC: /usr/bin/clang
137 CXX: /usr/bin/clang++
138 CMAKE_OSX_ARCHITECTURES: x86_64
139 MACOSX_DEPLOYMENT_TARGET: "10.7"
140 SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
141 before_script:
142 - export PATH=$PATH:~/Qt/5.10.0/clang_64/bin
143 script:
144 - cd build
145 - make package -j8
146 artifacts:
147 expire_in: 1 mos
148 paths:
149 - build/radiance-*.dmg
150
151 package:ubuntu:
152 stage: package
153 tags:
154 - ubuntu
155 dependencies:
156 - build:ubuntu
157 before_script:
158 - export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin
159 script:
160 - cd build
161 - make package -j8
162 artifacts:
163 expire_in: 1 mos
164 paths:
165 - build/radiance-*.tar.gz
166
167 package:windows:
168 stage: package
169 tags:
170 - vs2017
171 - windows
172 dependencies:
173 - build:windows
174 before_script:
175 - set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin
176 script:
177 - cd build
178 - '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target PACKAGE'
179 artifacts:
180 expire_in: 1 mos
181 paths:
182 - build/radiance-*.exe