Skip to content

Commit aa0675f

Browse files
committed
Try some tests with -D_GLIBCXX_DEBUG and coverage with -O0.
1 parent 5c764d9 commit aa0675f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ matrix:
4040
- env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=OFF
4141
compiler: gcc
4242
arch: amd64
43-
- env: CONF=debug ARCH=x86 CXX11=OFF CXX17=ON
43+
- env: CONF=debug ARCH=x86 CXX11=OFF CXX17=ON CXX_FLAGS='-D_GLIBCXX_DEBUG'
4444
compiler: gcc
45-
arch: amd64
46-
- env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=ON
45+
arch: amd64/
46+
- env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=ON CXX_FLAGS='-D_GLIBCXX_DEBUG'
4747
compiler: gcc
4848
arch: amd64
4949
- env: CONF=release ARCH=aarch64 CXX11=ON CXX17=OFF
@@ -84,7 +84,7 @@ matrix:
8484
compiler: clang
8585
arch: arm64
8686
# coverage report
87-
- env: CONF=debug ARCH=x86 CXX11=ON CXX17=OFF GCOV_FLAGS='--coverage'
87+
- env: CONF=debug ARCH=x86 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=OFF CXX17=OFF
8888
compiler: gcc
8989
arch: amd64
9090
cache:
@@ -93,7 +93,7 @@ matrix:
9393
after_success:
9494
- pip install --user cpp-coveralls
9595
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
96-
- env: CONF=debug ARCH=x86_64 GCOV_FLAGS='--coverage'
96+
- env: CONF=debug ARCH=x86_64 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=ON CXX17=OFF
9797
compiler: gcc
9898
arch: amd64
9999
cache:
@@ -102,7 +102,7 @@ matrix:
102102
after_success:
103103
- pip install --user cpp-coveralls
104104
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
105-
- env: CONF=debug ARCH=aarch64 GCOV_FLAGS='--coverage'
105+
- env: CONF=debug ARCH=aarch64 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=OFF CXX17=ON
106106
compiler: gcc
107107
arch: arm64
108108
cache:
@@ -150,7 +150,7 @@ script:
150150
-DRAPIDJSON_BUILD_CXX17=$CXX17
151151
-DCMAKE_VERBOSE_MAKEFILE=ON
152152
-DCMAKE_BUILD_TYPE=$CONF
153-
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
153+
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS $CXX_FLAGS"
154154
-DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
155155
..)
156156
- cd build

0 commit comments

Comments
 (0)