Browse Source

Added undefined-sanitizer job to CI

pipelines/280567345
eidheim 5 years ago
parent
commit
18aca81cf6
  1. 9
      .gitlab-ci.yml
  2. 16
      tests/stubs/project.cpp

9
.gitlab-ci.yml

@ -55,6 +55,15 @@ address-sanitizer:
- make -j$(nproc)
- broadwayd & CTEST_OUTPUT_ON_FAILURE=1 LSAN_OPTIONS=detect_leaks=0 make test
undefined-sanitizer:
image: cppit/jucipp:arch
stage: test
script:
- mkdir build && cd build
- CXXFLAGS="-fsanitize=undefined" cmake -DBUILD_TESTING=1 ..
- make -j$(nproc)
- broadwayd & CTEST_OUTPUT_ON_FAILURE=1 make test
check-format:
image: cppit/jucipp:arch
stage: lint

16
tests/stubs/project.cpp

@ -3,3 +3,19 @@
std::shared_ptr<Project::Base> Project::current;
std::shared_ptr<Project::Base> Project::create() { return nullptr; }
std::pair<std::string, std::string> Project::Base::get_run_arguments() {
return std::make_pair<std::string, std::string>("", "");
}
void Project::Base::compile() {}
void Project::Base::compile_and_run() {}
void Project::Base::recreate_build() {}
std::pair<std::string, std::string> Project::Base::debug_get_run_arguments() {
return std::make_pair<std::string, std::string>("", "");
}
void Project::Base::debug_start() {}

Loading…
Cancel
Save