image: corsika/devel:u-18.04 variables: GIT_SSL_NO_VERIFY: "1" build: stage: build tags: - corsika # detect_leaks=0 because leak detection doesn't work in CI, but you can # try to test with leak detection locally, just set detect_leaks=1 script: - mkdir build - cd build - cmake .. - cmake --build . -- -j4 - UBSAN_OPTIONS=print_stacktrace=1 LSAN_OPTIONS=log_threads=1 ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -V -O test.txt artifacts: expire_in: 1 week paths: - build/test.txt when: on_failure reports: junit: - build/test_outputs/junit*.xml pages: stage: build tags: - corsika script: - mkdir build - cd build - cmake .. - make doxygen - mkdir .public - cp -r Documentation/Doxygen/html .public/ - mv .public ../public artifacts: paths: - public only: - tags - triggers - schedules # code_quality: # image: docker:stable # variables: # DOCKER_DRIVER: overlay2 # allow_failure: true # services: # - docker:stable-dind # script: # - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') # - docker run # --env SOURCE_CODE="$PWD" # --volume "$PWD":/code # --volume /var/run/docker.sock:/var/run/docker.sock # "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code # artifacts: # reports: # codequality: gl-code-quality-report.json