@@ -7,47 +7,48 @@ executors:
7
7
- image : gcc:7
8
8
environment :
9
9
CXX : g++
10
+ CC : gcc
10
11
BUILD_FLAGS : -j
11
12
CTEST_FLAGS : -j4 --output-on-failure
12
13
13
14
gcc8 :
14
15
docker :
15
- - image : gcc:8
16
+ - image : conanio/gcc8
16
17
environment :
17
- CXX : g++
18
+ CXX : g++-8
19
+ CC : gcc-8
18
20
BUILD_FLAGS : -j
19
21
CTEST_FLAGS : -j4 --output-on-failure
20
22
21
23
gcc9 :
22
24
docker :
23
- - image : gcc:9
25
+ - image : conanio/gcc9
24
26
environment :
25
- CXX : g++
27
+ CXX : g++-9
28
+ CC : gcc-9
26
29
BUILD_FLAGS : -j
27
30
CTEST_FLAGS : -j4 --output-on-failure
31
+
28
32
clang9 :
29
33
docker :
30
34
- image : conanio/clang9
31
35
environment :
32
36
CXX : clang++-9
37
+ CC : clang-9
33
38
BUILD_FLAGS : -j
34
39
CTEST_FLAGS : -j4 --output-on-failure
35
40
36
41
clang6 :
37
42
docker :
38
- - image : ubuntu:18.04
43
+ - image : conanio/clang60
39
44
environment :
40
45
CXX : clang++-6.0
46
+ CC : clang-6.0
41
47
BUILD_FLAGS : -j
42
48
CTEST_FLAGS : -j4 --output-on-failure
43
-
49
+
44
50
# Reusable test commands (and initializer for clang 6)
45
51
commands :
46
- init_clang6 :
47
- steps :
48
- - run : apt-get update -qq
49
- - run : apt-get install -y clang build-essential git
50
-
51
52
install_cmake :
52
53
steps :
53
54
- run : apt-get update -qq
98
99
description : Build and run tests on clang 6 and AVX 2 with a cmake static build
99
100
executor : clang6
100
101
environment : { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
101
- steps : [ init_clang6, install_cmake, cmake_test_all, cmake_install_test ]
102
+ steps : [ cmake_test_all, cmake_install_test ]
102
103
# libcpp
103
104
libcpp-clang9 :
104
105
description : Build and run tests on clang 6 and AVX 2 with a cmake static build and libc++
@@ -110,69 +111,69 @@ jobs:
110
111
description : Build and run tests on GCC 9 and AVX 2 with a cmake sanitize build
111
112
executor : gcc9
112
113
environment : { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF -DSIMDJSON_SANITIZE=ON, BUILD_FLAGS: "", CTEST_FLAGS: -j4 --output-on-failure -E checkperf }
113
- steps : [ install_cmake, cmake_test_all ]
114
- sanitize-clang6 :
114
+ steps : [ cmake_test_all ]
115
+ sanitize-clang9 :
115
116
description : Build and run tests on clang 6 and AVX 2 with a cmake sanitize build
116
- executor : clang6
117
+ executor : clang9
117
118
environment : { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF -DSIMDJSON_SANITIZE=ON, CTEST_FLAGS: -j4 --output-on-failure -E checkperf }
118
- steps : [ init_clang6, install_cmake, cmake_test_all ]
119
+ steps : [ cmake_test_all ]
119
120
120
121
# dynamic
121
- dynamic-gcc7 :
122
+ dynamic-gcc9 :
122
123
description : Build and run tests on GCC 7 and AVX 2 with a cmake dynamic build
123
- executor : gcc7
124
+ executor : gcc9
124
125
environment : { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF }
125
- steps : [ install_cmake, cmake_test, cmake_install_test ]
126
- dynamic-clang6 :
126
+ steps : [ cmake_test, cmake_install_test ]
127
+ dynamic-clang9 :
127
128
description : Build and run tests on clang 6 and AVX 2 with a cmake dynamic build
128
- executor : clang6
129
+ executor : clang9
129
130
environment : { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF }
130
- steps : [ init_clang6, install_cmake, cmake_test, cmake_install_test ]
131
+ steps : [ cmake_test, cmake_install_test ]
131
132
132
133
# unthreaded
133
- unthreaded-gcc7 :
134
+ unthreaded-gcc9 :
134
135
description : Build and run tests on GCC 7 and AVX 2 *without* threads
135
- executor : gcc7
136
+ executor : gcc9
136
137
environment : { CMAKE_FLAGS: -DSIMDJSON_ENABLE_THREADS=OFF }
137
- steps : [ install_cmake, cmake_test, cmake_install_test ]
138
- unthreaded-clang6 :
138
+ steps : [ cmake_test, cmake_install_test ]
139
+ unthreaded-clang9 :
139
140
description : Build and run tests on Clang 6 and AVX 2 *without* threads
140
- executor : clang6
141
+ executor : clang9
141
142
environment : { CMAKE_FLAGS: -DSIMDJSON_ENABLE_THREADS=OFF }
142
- steps : [ init_clang6, install_cmake, cmake_test, cmake_install_test ]
143
+ steps : [ cmake_test, cmake_install_test ]
143
144
144
145
# noexcept
145
- noexcept-gcc7 :
146
+ noexcept-gcc9 :
146
147
description : Build and run tests on GCC 7 and AVX 2 with exceptions off
147
- executor : gcc7
148
+ executor : gcc9
148
149
environment : { CMAKE_FLAGS: -DSIMDJSON_EXCEPTIONS=OFF }
149
- steps : [ install_cmake, cmake_test, cmake_install_test ]
150
- noexcept-clang6 :
150
+ steps : [ cmake_test, cmake_install_test ]
151
+ noexcept-clang9 :
151
152
description : Build and run tests on GCC 7 and AVX 2 with exceptions off
152
- executor : clang6
153
+ executor : clang9
153
154
environment : { CMAKE_FLAGS: -DSIMDJSON_EXCEPTIONS=OFF }
154
- steps : [ init_clang6, install_cmake, cmake_test, cmake_install_test ]
155
+ steps : [ cmake_test, cmake_install_test ]
155
156
156
157
#
157
158
# Misc.
158
159
#
159
160
160
161
# make (test and checkperf)
161
- arch-haswell-gcc7 :
162
+ arch-haswell-gcc9 :
162
163
description : Build, run tests and check performance on GCC 7 with -march=haswell
163
- executor : gcc7
164
+ executor : gcc9
164
165
environment : { CXXFLAGS: -march=haswell }
165
- steps : [ install_cmake, cmake_test ]
166
- arch-nehalem-gcc7 :
166
+ steps : [ cmake_test ]
167
+ arch-nehalem-gcc9 :
167
168
description : Build, run tests and check performance on GCC 7 with -march=nehalem
168
- executor : gcc7
169
+ executor : gcc9
169
170
environment : { CXXFLAGS: -march=nehalem }
170
- steps : [ install_cmake, cmake_test ]
171
- no-computed-goto-gcc7 :
171
+ steps : [ cmake_test ]
172
+ no-computed-goto-gcc9 :
172
173
description : Build, run tests and check performance on GCC 7 with -DSIMDJSON_NO_COMPUTED_GOTO=true
173
- executor : gcc7
174
+ executor : gcc9
174
175
environment : { CXXFLAGS: -DSIMDJSON_NO_COMPUTED_GOTO=true }
175
- steps : [ install_cmake, cmake_test ]
176
+ steps : [ cmake_test ]
176
177
177
178
workflows :
178
179
version : 2.1
@@ -187,16 +188,16 @@ workflows:
187
188
188
189
# full single-implementation tests
189
190
- sanitize-gcc9
190
- - sanitize-clang6
191
- - dynamic-gcc7
192
- - dynamic-clang6
193
- - unthreaded-gcc7
194
- - unthreaded-clang6
191
+ - sanitize-clang9
192
+ - dynamic-gcc9
193
+ - dynamic-clang9
194
+ - unthreaded-gcc9
195
+ - unthreaded-clang9
195
196
196
197
# quicker make single-implementation tests
197
- - arch-haswell-gcc7
198
- - arch-nehalem-gcc7
199
- - no-computed-goto-gcc7
198
+ - arch-haswell-gcc9
199
+ - arch-nehalem-gcc9
200
+ - no-computed-goto-gcc9
200
201
201
202
# TODO add windows: https://circleci.com/docs/2.0/configuration-reference/#windows
202
203
0 commit comments