8000 Introducing strict tests (-Werror) only for GCC 8 and GCC 9. · JavaScriptExpert/simdjson@cf704cf · GitHub
[go: up one dir, main page]

Skip to content

Commit cf704cf

Browse files
lemirejkeiser
authored andcommitted
Introducing strict tests (-Werror) only for GCC 8 and GCC 9.
1 parent 265d474 commit cf704cf

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.circleci/config.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ executors:
77
- image: gcc:7
88
environment:
99
CXX: g++
10+
gcc8:
11+
docker:
12+
- image: gcc:8
13+
environment:
14+
CXX: g++
1015
gcc9:
1116
docker:
1217
- image: gcc:9
@@ -25,6 +30,18 @@ commands:
2530
- run: apt-get update -qq
2631
- run: apt-get install -y clang build-essential git
2732
make_test:
33+
steps:
34+
- checkout
35+
- run: make
36+
- run: make amalgamate
37+
- run: ARCHFLAGS=-march=haswell make amalgamate # some users do this: https://github.com/lemire/simdjson/issues/444
38+
- run: make test
39+
- run: make checkperf
40+
- run: make clean
41+
- run: ARCHFLAGS=-march=haswell make test # this breaks runtime dispatch, but see https://github.com/lemire/simdjson/issues/444... this is a code robustness test
42+
- run: make clean
43+
- run: EXTRAFLAGS=-DSIMDJSON_NO_COMPUTED_GOTO=true make test # this should run tests with computed gotos disabled
44+
make_test_strict:
2845
steps:
2946
- checkout
3047
- run: EXTRAFLAGS=-Werror make
@@ -73,7 +90,11 @@ jobs:
7390
gcc9-avx:
7491
description: Build, run tests and check performance on GCC 9 and AVX 2
7592
executor: gcc9
76-
steps: [ make_test ]
93+
steps: [ make_test_strict ]
94+
gcc8-avx:
95+
description: Build, run tests and check performance on GCC 8 and AVX 2
96+
executor: gcc9
97+
steps: [ make_test_strict ]
7798
gcc-avx:
7899
description: Build, run tests and check performance on GCC 7 and AVX 2
79100
executor: gcc7
@@ -170,8 +191,9 @@ workflows:
170191
version: 2.1
171192
build_and_test:
172193
jobs:
173-
- gcc-avx
174194
- gcc9-avx
195+
- gcc8-avx
196+
- gcc-avx
175197
- gcc-avx-dynamic
176198
- gcc-avx-static
177199
- gcc-avx-google-benchmarks

0 commit comments

Comments
 (0)
0