Skip to content

Commit b408d7c

Browse files
author
Daniel Lemire
committed
Because we are dynamic by default, we never test static!
1 parent 02a8145 commit b408d7c

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

.circleci/config.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
gcc7:
117117
description: Build and run tests on GCC 7 and AVX 2 with a cmake static build
118118
executor: gcc7
119-
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
119+
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
120120
steps: [ install_cmake, cmake_test, cmake_install_test ]
121121
justlib-gcc10:
122122
description: Build just the library, install it and do a basic test
@@ -126,23 +126,23 @@ jobs:
126126
gcc10:
127127
description: Build and run tests on GCC 10 and AVX 2 with a cmake static build
128128
executor: gcc10
129-
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
129+
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
130130
steps: [ cmake_test_all, cmake_install_test ]
131131
clang6:
132132
description: Build and run tests on clang 6 and AVX 2 with a cmake static build
133133
executor: clang6
134-
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
134+
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
135135
steps: [ cmake_test, cmake_install_test ]
136136
clang10:
137137
description: Build and run tests on clang 10 and AVX 2 with a cmake static build
138138
executor: clang10
139-
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
139+
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
140140
steps: [ cmake_test, cmake_install_test ]
141141
# libcpp
142142
libcpp-clang10:
143143
description: Build and run tests on clang 10 and AVX 2 with a cmake static build and libc++
144144
executor: clang10
145-
environment: { CMAKE_FLAGS: -DSIMDJSON_USE_LIBCPP=ON }
145+
environment: { CMAKE_FLAGS: -DSIMDJSON_USE_LIBCPP=ON -DSIMDJSON_BUILD_STATIC=ON }
146146
steps: [ cmake_test, cmake_install_test ]
147147
# sanitize
148148
sanitize-gcc10:
@@ -155,7 +155,7 @@ jobs:
155155
executor: clang10
156156
environment: { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF -DSIMDJSON_SANITIZE=ON, CTEST_FLAGS: -j4 --output-on-failure -E checkperf }
157157
steps: [ cmake_test ]
158-
158+
159159
# dynamic
160160
dynamic-gcc10:
161161
description: Build and run tests on GCC 10 and AVX 2 with a cmake dynamic build
@@ -167,7 +167,7 @@ jobs:
167167
executor: clang10
168168
environment: { CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=OFF }
169169
steps: [ cmake_test, cmake_install_test ]
170-
170+
171171
# unthreaded
172172
unthreaded-gcc10:
173173
description: Build and run tests on GCC 10 and AVX 2 *without* threads
@@ -222,10 +222,10 @@ workflows:
222222
#- gcc10 # this gets tested a lot below
223223
- clang6
224224
#- clang10 # this gets tested a lot below
225-
225+
226226
# libc++
227227
- libcpp-clang10
228-
228+
229229
# full single-implementation tests
230230
- sanitize-gcc10
231231
- sanitize-clang10
@@ -245,6 +245,5 @@ workflows:
245245

246246
# testing "just the library"
247247
- justlib-gcc10
248-
249-
# TODO add windows: https://circleci.com/docs/2.0/configuration-reference/#windows
250248

249+
# TODO add windows: https://circleci.com/docs/2.0/configuration-reference/#windows

.drone.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ steps:
77
environment:
88
CC: gcc
99
CXX: g++
10-
BUILD_FLAGS: -- -j
10+
BUILD_FLAGS: -- -j -DSIMDJSON_BUILD_STATIC=ON
1111
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
1212
commands:
1313
- apt-get update -qq
14-
- apt-get install -y cmake
14+
- apt-get install -y cmake
1515
- mkdir build
1616
- cd build
1717
- cmake $CMAKE_FLAGS ..
@@ -59,7 +59,7 @@ steps:
5959
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
6060
commands:
6161
- apt-get update -qq
62-
- apt-get install -y cmake
62+
- apt-get install -y cmake
6363
- mkdir build
6464
- cd build
6565
- cmake $CMAKE_FLAGS ..
@@ -99,7 +99,7 @@ steps:
9999
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
100100
commands:
101101
- apt-get update -qq
102-
- apt-get install -y cmake
102+
- apt-get install -y cmake
103103
- mkdir build
104104
- cd build
105105
- cmake $CMAKE_FLAGS ..
@@ -303,7 +303,7 @@ steps:
303303
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
304304
commands:
305305
- apt-get update -qq
306-
- apt-get install -y cmake
306+
- apt-get install -y cmake
307307
- mkdir build
308308
- cd build
309309
- cmake $CMAKE_FLAGS ..

0 commit comments

Comments
 (0)