IAP GITLAB

.gitlab-ci.yml 1.64 KB
Newer Older
Lukas Nellen's avatar
Lukas Nellen committed
1
image: corsika/devel:u-18.04
Ralf Ulrich's avatar
Ralf Ulrich committed
2

Ralf Ulrich's avatar
Ralf Ulrich committed
3 4
variables:
  GIT_SSL_NO_VERIFY: "1"
5 6 7 8 9 10
  ## Runtime options for sanitizers
  # (detect_leaks=0 because leak detection doesn't work in CI, but you can
  # try to test with leak detection locally by using detect_leaks=1)
  UBSAN_OPTIONS: "print_stacktrace=1"
  LSAN_OPTIONS: "log_threads=1"
  ASAN_OPTIONS: "detect_leaks=0:detect_stack_use_after_return=1"
Ralf Ulrich's avatar
Ralf Ulrich committed
11

Hans Dembinski's avatar
Hans Dembinski committed
12 13
build:
  stage: build
Ralf Ulrich's avatar
Ralf Ulrich committed
14
  tags:
Lukas Nellen's avatar
Lukas Nellen committed
15
    - corsika
Hans Dembinski's avatar
Hans Dembinski committed
16 17 18 19
  script:
    - mkdir build
    - cd build
    - cmake ..
20 21
    - cmake --build . -- -j 4
    - ctest -j4 -V >& test.log
22 23
  after_script:
    - cd build
24
    - ls
25
    - gzip -v -9 -S .gz test.log
26
    - pwd
27
  artifacts:
Ralf Ulrich's avatar
Ralf Ulrich committed
28
    expire_in: 1 week
29
    paths:
30
      - build/test.log.gz
Ralf Ulrich's avatar
Ralf Ulrich committed
31
    when: on_failure
32 33
    reports:
      junit:
34
        - build/test_outputs/junit*.xml
Ralf Ulrich's avatar
Ralf Ulrich committed
35

36
pages:
Ralf Ulrich's avatar
Ralf Ulrich committed
37
  stage: build
Ralf Ulrich's avatar
Ralf Ulrich committed
38
  tags:
Lukas Nellen's avatar
Lukas Nellen committed
39
    - corsika
40
  script:
Ralf Ulrich's avatar
Ralf Ulrich committed
41 42 43
    - mkdir build
    - cd build
    - cmake ..
44 45 46
    - make doxygen
    - mkdir .public
    - cp -r Documentation/Doxygen/html .public/
Ralf Ulrich's avatar
Ralf Ulrich committed
47
    - mv .public ../public
48 49 50 51 52 53 54 55 56
  artifacts:
    paths:
      - public
  only:
    - tags
    - triggers
    - schedules


Ralf Ulrich's avatar
Ralf Ulrich committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
# 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