1
1
version : 2
2
2
3
3
aliases :
4
- - &test-base
4
+ - &test-base-legacy
5
5
working_directory : /tmp/drafter
6
6
environment :
7
7
CXXFLAGS : ' -Werror -Wno-error=unused-function'
8
-
9
8
steps :
10
9
- checkout
11
10
- run : git submodule update --init --recursive
@@ -18,43 +17,74 @@ aliases:
18
17
name : Test
19
18
command : make test -j4
20
19
21
- - &test-clang-base
22
- << : *test-base
23
- environment :
24
- CXXFLAGS : ' -Werror -Wno-error=unused-function -Wno-error=missing-braces'
20
+ - &test-base
21
+ working_directory : /tmp/drafter
25
22
26
23
- &tag-filter
27
24
filters :
28
25
tags :
29
26
only : /^v.*/
30
27
28
+ - &clang-debug
29
+ run :
30
+ name : Build drafter/debug with clang
31
+ command : |
32
+ ctest -VV -j4 -S cmake/unix.cmake -DCTEST_BUILD_TYPE=Debug -DCTEST_BUILD_NAME="clang $(c++ -dumpversion)"
33
+
34
+ - &clang-release
35
+ run :
36
+ name : Build drafter/release with clang
37
+ command : |
38
+ ctest -VV -j4 -S cmake/unix.cmake -DCTEST_BUILD_TYPE=Release -DCTEST_BUILD_NAME="clang $(c++ -dumpversion)"
39
+
40
+ - &gcc-debug
41
+ run :
42
+ name : Build drafter/debug with gcc
43
+ command : |
44
+ ctest -VV -j4 -S cmake/unix.cmake -DCTEST_BUILD_TYPE=Debug -DCTEST_BUILD_NAME="gcc $(c++ -dumpversion)"
45
+
46
+ - &gcc-release
47
+ run :
48
+ name : Build drafter/release with gcc
49
+ command : |
50
+ ctest -VV -j4 -S cmake/unix.cmake -DCTEST_BUILD_TYPE=Release -DCTEST_BUILD_NAME="gcc $(c++ -dumpversion)"
51
+
52
+ - &update-submodules
53
+ run :
54
+ name : Update submodules
55
+ command : ' git submodule update --init --recursive'
56
+
31
57
workflows :
32
58
version : 2
33
59
34
60
drafter :
35
61
jobs :
36
62
- lint
37
- - test-gcc5.4 : *tag-filter
38
- - test-gcc6 : *tag-filter
39
- - test-gcc7 : *tag-filter
40
- # - test-gcc8: *tag-filter
41
- - test-clang4 : *tag-filter
42
- - test-clang5 : *tag-filter
43
- - test-clang6 : *tag-filter
44
- - test-xcode9 : *tag-filter
45
- - test-integration : *tag-filter
63
+ - test-gcc-49-debug : *tag-filter
64
+ - test-gcc-49-release : *tag-filter
65
+ - test-gcc-latest-debug : *tag-filter
66
+ - test-gcc-latest-release : *tag-filter
67
+ - test-clang-4-debug : *tag-filter
68
+ - test-clang-4-release : *tag-filter
69
+ - test-clang-latest-debug : *tag-filter
70
+ - test-clang-latest-release : *tag-filter
71
+ - test-osx-release : *tag-filter
72
+ - test-osx-debug : *tag-filter
73
+ - test-gyp : *tag-filter
46
74
- test-valgrind : *tag-filter
47
75
- release :
48
76
requires :
49
- - test-gcc5.4
50
- - test-gcc6
51
- - test-gcc7
52
- # - test-gcc8
53
- - test-clang4
54
- - test-clang5
55
- - test-clang6
56
- - test-xcode9
57
- - test-integration
77
+ - test-gcc-49-debug
78
+ - test-gcc-49-release
79
+ - test-gcc-latest-debug
80
+ - test-gcc-latest-release
81
+ - test-clang-4-debug
82
+ - test-clang-4-release
83
+ - test-clang-latest-debug
84
+ - test-clang-latest-release
85
+ - test-osx-release
86
+ - test-osx-debug
87
+ - test-gyp
58
88
- test-valgrind
59
89
filters :
60
90
tags :
@@ -72,65 +102,107 @@ jobs:
72
102
- run : git submodule update --init --recursive
73
103
- run : ./tools/clang-format-check.sh
74
104
75
- test-gcc5.4 :
76
- << : *test-base
105
+ test-gyp :
106
+ << : *test-base-legacy
77
107
docker :
78
108
- image : gcc:5.4
79
109
80
- test-gcc6 :
110
+ test-gcc-49-debug :
81
111
<< : *test-base
112
+ steps :
113
+ - checkout
114
+ - << : *update-submodules
115
+ - << : *gcc-debug
82
116
docker :
83
- - image : gcc:6
117
+ - image : apiaryio/drafter-ci:gcc-4.9
84
118
85
- test-gcc7 :
119
+ test-gcc-49-release :
86
120
<< : *test-base
121
+ steps :
122
+ - checkout
123
+ - << : *update-submodules
124
+ - << : *gcc-release
87
125
docker :
88
- - image : gcc:7
126
+ - image : apiaryio/drafter-ci:gcc-4.9
89
127
90
- test-gcc8 :
128
+ test-gcc-latest-debug :
91
129
<< : *test-base
130
+ steps :
131
+ - checkout
132
+ - << : *update-submodules
133
+ - << : *gcc-debug
92
134
docker :
93
- - image : gcc:8
135
+ - image : apiaryio/drafter-ci:gcc-latest
94
136
95
- test-clang4 :
96
- << : *test-clang-base
137
+ test-gcc-latest-release :
138
+ << : *test-base
139
+ steps :
140
+ - checkout
141
+ - << : *update-submodules
142
+ - << : *gcc-release
97
143
docker :
98
- - image : apiaryio/clang:4
144
+ - image : apiaryio/drafter-ci:gcc-latest
99
145
100
- test-clang5 :
101
- << : *test-clang-base
146
+ test-clang-4-debug :
147
+ << : *test-base
148
+ steps :
149
+ - checkout
150
+ - << : *update-submodules
151
+ - << : *clang-debug
102
152
docker :
103
- - image : apiaryio/clang:5
153
+ - image : apiaryio/drafter-ci:clang-4.0
104
154
105
- test-clang6 :
106
- << : *test-clang-base
155
+ test-clang-4-release :
156
+ << : *test-base
157
+ steps :
158
+ - checkout
159
+ - << : *update-submodules
160
+ - << : *clang-release
107
161
docker :
108
- - image : apiaryio/clang:6
109
-
110
- test-xcode9 :
111
- << : *test-clang-base
112
- macos :
113
- xcode : " 9.4.0"
162
+ - image : apiaryio/drafter-ci:clang-4.0
114
163
115
- test-integration :
164
+ test-clang-latest-debug :
165
+ << : *test-base
166
+ steps :
167
+ - checkout
168
+ - << : *update-submodules
169
+ - << : *clang-debug
116
170
docker :
117
- - image : circleci/ruby:2.5.1
118
- working_directory : /tmp/drafter
171
+ - image : apiaryio/drafter-ci:clang-latest
119
172
173
+ test-clang-latest-release :
174
+ << : *test-base
120
175
steps :
121
176
- checkout
122
- - run : git submodule update --init --recursive
177
+ - << : *update-submodules
178
+ - << : *clang-release
179
+ docker :
180
+ - image : apiaryio/drafter-ci:clang-latest
123
181
124
- - run :
125
- name : Build
126
- command : ./configure && make -j4
182
+ test-osx-debug :
183
+ << : *test-base
184
+ steps :
185
+ - checkout
186
+ - << : *update-submodules
187
+ - run : sudo bundle install
188
+ - run : brew install cmake
189
+ - << : *clang-debug
190
+ macos :
191
+ xcode : " 9.4.0"
127
192
128
- - run :
129
- name : Integration Test
130
- command : bundle install && bundle exec cucumber
193
+ test-osx-release :
194
+ << : *test-base
195
+ steps :
196
+ - checkout
197
+ - << : *update-submodules
198
+ - run : sudo bundle install
199
+ - run : brew install cmake
200
+ - << : *clang-release
201
+ macos :
202
+ xcode : " 9.4.0"
131
203
132
204
test-valgrind :
133
- << : *test-base
205
+ << : *test-base-legacy
134
206
docker :
135
207
- image : gcc:7
136
208
@@ -163,5 +235,6 @@ jobs:
163
235
164
236
steps :
165
237
- checkout
166
- - run : git submodule update --init --recursive
238
+ - << : * update-submodules
167
239
- run : ./tools/release.sh
240
+
0 commit comments