IAP GITLAB

.gitlab-ci.yml 895 Bytes
Newer Older
Ralf Ulrich's avatar
Ralf Ulrich committed
1
image: ubuntu:bionic
Ralf Ulrich's avatar
Ralf Ulrich committed
2

Ralf Ulrich's avatar
Ralf Ulrich committed
3 4 5
variables:
  GIT_SSL_NO_VERIFY: "1"

Hans Dembinski's avatar
Hans Dembinski committed
6 7
before_script:
  - apt-get update --yes
Ralf Ulrich's avatar
Ralf Ulrich committed
8
  - apt-get install --yes cmake libboost-dev libeigen3-dev python3 gfortran
Hans Dembinski's avatar
Hans Dembinski committed
9 10 11

build:
  stage: build
Ralf Ulrich's avatar
Ralf Ulrich committed
12 13
  tags:
    - run1
Hans Dembinski's avatar
Hans Dembinski committed
14 15 16 17 18
  script:
    - mkdir build
    - cd build
    - cmake ..
    - cmake --build .
Ralf Ulrich's avatar
Ralf Ulrich committed
19
    - ctest
Ralf Ulrich's avatar
Ralf Ulrich committed
20

Ralf Ulrich's avatar
Ralf Ulrich committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
# 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