Add gcc -Werror run on CI
This commit is contained in:
parent
1aaf4d4c92
commit
802ce7c4df
@ -169,15 +169,17 @@ references:
|
|||||||
name: Test
|
name: Test
|
||||||
no_output_timeout: 120m
|
no_output_timeout: 120m
|
||||||
command: |
|
command: |
|
||||||
cd cmake
|
if "${RUN_TESTS}"; then
|
||||||
./test/gitversion/gitversion-test
|
cd cmake
|
||||||
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cpp-utils/cpp-utils-test ; fi
|
./test/gitversion/gitversion-test
|
||||||
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] && [ ! "$DISABLE_BROKEN_ASAN_TESTS" = true ] ; then ./test/fspp/fspp-test ; fi
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cpp-utils/cpp-utils-test ; fi
|
||||||
./test/parallelaccessstore/parallelaccessstore-test
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] && [ ! "$DISABLE_BROKEN_ASAN_TESTS" = true ] ; then ./test/fspp/fspp-test ; fi
|
||||||
./test/blockstore/blockstore-test
|
./test/parallelaccessstore/parallelaccessstore-test
|
||||||
./test/blobstore/blobstore-test
|
./test/blockstore/blockstore-test
|
||||||
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs/cryfs-test ; fi
|
./test/blobstore/blobstore-test
|
||||||
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs-cli/cryfs-cli-test ; fi
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs/cryfs-test ; fi
|
||||||
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs-cli/cryfs-cli-test ; fi
|
||||||
|
fi
|
||||||
job_definition: &job_definition
|
job_definition: &job_definition
|
||||||
<<: *container_config
|
<<: *container_config
|
||||||
steps:
|
steps:
|
||||||
@ -209,6 +211,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_5_release:
|
gcc_5_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -219,6 +222,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_6_debug:
|
gcc_6_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -229,6 +233,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_6_release:
|
gcc_6_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -239,6 +244,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_7_debug:
|
gcc_7_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -249,6 +255,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_7_release:
|
gcc_7_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -259,6 +266,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_8_debug:
|
gcc_8_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -269,6 +277,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
gcc_8_release:
|
gcc_8_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -279,6 +288,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_4_debug:
|
clang_4_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -289,6 +299,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_4_release:
|
clang_4_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -299,6 +310,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_5_debug:
|
clang_5_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -309,6 +321,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_5_release:
|
clang_5_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -319,6 +332,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_6_debug:
|
clang_6_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -329,6 +343,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_6_release:
|
clang_6_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -339,6 +354,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_7_debug:
|
clang_7_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -349,6 +365,7 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
clang_7_release:
|
clang_7_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -359,6 +376,29 @@ jobs:
|
|||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
|
# clang_werror:
|
||||||
|
# <<: *job_definition
|
||||||
|
# environment:
|
||||||
|
# CC: clang-7
|
||||||
|
# CXX: clang++-7
|
||||||
|
# BUILD_TOOLSET: clang
|
||||||
|
# APT_COMPILER_PACKAGE: clang-7
|
||||||
|
# CXXFLAGS: "-Werror"
|
||||||
|
# BUILD_TYPE: "Release"
|
||||||
|
# CMAKE_FLAGS: ""
|
||||||
|
# RUN_TESTS: false
|
||||||
|
gcc_werror:
|
||||||
|
<<: *job_definition
|
||||||
|
environment:
|
||||||
|
CC: gcc-8
|
||||||
|
CXX: g++-8
|
||||||
|
BUILD_TOOLSET: gcc
|
||||||
|
APT_COMPILER_PACKAGE: "g++-8"
|
||||||
|
CXXFLAGS: "-Werror"
|
||||||
|
BUILD_TYPE: "Release"
|
||||||
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: false
|
||||||
no_compatibility:
|
no_compatibility:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -369,6 +409,7 @@ jobs:
|
|||||||
CXXFLAGS: "-DCRYFS_NO_COMPATIBILITY"
|
CXXFLAGS: "-DCRYFS_NO_COMPATIBILITY"
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
address_sanitizer:
|
address_sanitizer:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -381,6 +422,7 @@ jobs:
|
|||||||
ASAN_OPTIONS: "detect_leaks=1 check_initialization_order=1 detect_stack_use_after_return=1 detect_invalid_pointer_pairs=1 atexit=1"
|
ASAN_OPTIONS: "detect_leaks=1 check_initialization_order=1 detect_stack_use_after_return=1 detect_invalid_pointer_pairs=1 atexit=1"
|
||||||
DISABLE_BROKEN_ASAN_TESTS: true
|
DISABLE_BROKEN_ASAN_TESTS: true
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
ub_sanitizer:
|
ub_sanitizer:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -392,6 +434,7 @@ jobs:
|
|||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
DISABLE_BROKEN_ASAN_TESTS: true
|
DISABLE_BROKEN_ASAN_TESTS: true
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
thread_sanitizer:
|
thread_sanitizer:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
@ -403,6 +446,7 @@ jobs:
|
|||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
DISABLE_BROKEN_TSAN_TESTS: true
|
DISABLE_BROKEN_TSAN_TESTS: true
|
||||||
CMAKE_FLAGS: ""
|
CMAKE_FLAGS: ""
|
||||||
|
RUN_TESTS: true
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
@ -441,6 +485,10 @@ workflows:
|
|||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
- clang_7_release:
|
- clang_7_release:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
|
# - clang_werror:
|
||||||
|
# <<: *enable_for_tags
|
||||||
|
- gcc_werror:
|
||||||
|
<<: *enable_for_tags
|
||||||
- no_compatibility:
|
- no_compatibility:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
- address_sanitizer:
|
- address_sanitizer:
|
||||||
|
@ -63,7 +63,8 @@ ProgramOptions Parser::parse(const vector<string> &supportedCiphers) const {
|
|||||||
}
|
}
|
||||||
bool allowFilesystemUpgrade = vm.count("allow-filesystem-upgrade");
|
bool allowFilesystemUpgrade = vm.count("allow-filesystem-upgrade");
|
||||||
bool allowReplacedFilesystem = vm.count("allow-replaced-filesystem");
|
bool allowReplacedFilesystem = vm.count("allow-replaced-filesystem");
|
||||||
optional<double> unmountAfterIdleMinutes = none;
|
optional<double> unmountAfterIdleMinutes = 0.0; // first setting to 0 and then to none is somehow needed to silence a GCC warning from -Wmaybe-uninitialized
|
||||||
|
unmountAfterIdleMinutes = none;
|
||||||
if (vm.count("unmount-idle")) {
|
if (vm.count("unmount-idle")) {
|
||||||
unmountAfterIdleMinutes = vm["unmount-idle"].as<double>();
|
unmountAfterIdleMinutes = vm["unmount-idle"].as<double>();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user