From bb051f92ffa601cc53a1fee575122a565faa90de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Tue, 29 Aug 2023 08:45:31 +0200 Subject: [PATCH] Replace in .travis.yml all instances of "true" by "ON" To match the other "ON/OFF" flags used in the file, corresponding to CMake conventions --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index ea4200d..98f2c7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,14 +39,14 @@ jobs: env: - cc=gcc cxx=g++ - GCOV=ON - - COVERALLS=true + - COVERALLS=ON # GCC 7.4.0 Debug build with Valgrind instead of Address Sanitizer - dist: bionic env: - cc=gcc cxx=g++ - ASAN=OFF - - VALGRIND=true + - VALGRIND=ON # GCC 7.4.0 Release build - dist: bionic @@ -110,8 +110,8 @@ before_install: - if [[ -n "$COVERITY_SCAN_PROJECT_NAME" ]] ; then curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh | bash ; exit 0 ; fi - if [[ "$INTERNAL_SQLITE" == "OFF" ]]; then sudo apt-get install libsqlite3-dev ; fi - - if [[ "$VALGRIND" == "true" ]]; then sudo apt-get install valgrind ; fi - - if [[ "$COVERALLS" == "true" ]]; then pip install --user cpp-coveralls ; fi + - if [[ "$VALGRIND" == "ON" ]]; then sudo apt-get install valgrind ; fi + - if [[ "$COVERALLS" == "ON" ]]; then pip install --user cpp-coveralls ; fi # Set the compiler environment variables properly - export CC=${cc} @@ -128,9 +128,9 @@ script: - cmake --build . - export ASAN_OPTIONS=verbosity=1:debug=1 - ctest --verbose --output-on-failure - - if [[ "$VALGRIND" == "true" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_example1 ; fi - - if [[ "$VALGRIND" == "true" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_tests ; fi + - if [[ "$VALGRIND" == "ON" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_example1 ; fi + - if [[ "$VALGRIND" == "ON" ]]; then valgrind --leak-check=full --error-exitcode=1 bin/SQLiteCpp_tests ; fi # generate and publish GCov coveralls results after_success: - - if [[ "$COVERALLS" == "true" ]]; then coveralls --root .. -e examples -e googletest -e sqlite3 -e tests -E ".*feature_tests.*" -E ".*CompilerId.*" --gcov-options '\-lp' ; fi + - if [[ "$COVERALLS" == "ON" ]]; then coveralls --root .. -e examples -e googletest -e sqlite3 -e tests -E ".*feature_tests.*" -E ".*CompilerId.*" --gcov-options '\-lp' ; fi