[go: up one dir, main page]

File: .gitlab-ci.yml

package info (click to toggle)
dyssol 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 18,188 kB
  • sloc: cpp: 53,643; sh: 85; python: 55; makefile: 12
file content (78 lines) | stat: -rw-r--r-- 2,018 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stages:
  - build
  - test

.compile_template: &compile_definition
  stage: build
  script:
    - apt-get update && apt-get install -y cmake ccache build-essential libsundials-dev libhdf5-serial-dev libqt5opengl5-dev libgraphviz-dev clang doxygen python3-sphinx python3-sphinx-rtd-theme python3-breathe
    - export PATH="/usr/lib/ccache:$PATH"
    - export CCACHE_BASEDIR="$PWD"
    - export CCACHE_DIR="$PWD/ccache"
    - ccache -s
    - mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_VERBOSE_MAKEFILE=ON  -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_INSTALL_PREFIX=../install .. && make && make doc && make install
    - CTEST_OUTPUT_ON_FAILURE=1 make test
    - ccache -s

.artifacts_template: &artifacts_definition
  artifacts:
    when: always
    paths:
      - install
      - build
    expire_in: 2 weeks

.test_template: &test_definition
  stage: test
  script:
    - cd ./build
    - make test
  timeout: 30 minutes

deb_12-gcc:
  <<: *artifacts_definition
  <<: *compile_definition
  image: debian:bookworm

deb_12-clang:
  <<: *artifacts_definition
  <<: *compile_definition
  variables:
    CC: /usr/bin/clang
    CXX: /usr/bin/clang++
  image: debian:bookworm

deb_12-gcc-san:
  <<: *artifacts_definition
  <<: *compile_definition
  variables:
    CXXFLAGS: "-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined"
  image: debian:bookworm

deb_12-clang-san:
  <<: *artifacts_definition
  <<: *compile_definition
  variables:
    CC: /usr/bin/clang
    CXX: /usr/bin/clang++
    CXXFLAGS: "-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined"
  image: debian:bookworm

ubu_20.04:
  <<: *artifacts_definition
  <<: *compile_definition
  image: ubuntu:focal
  before_script:
    - apt-get update &&  apt-get install -y software-properties-common && add-apt-repository ppa:gladky-anton/sundials

ubu_22.04:
  <<: *artifacts_definition
  <<: *compile_definition
  image: ubuntu:jammy

variables:
  DEBIAN_FRONTEND: "noninteractive"

cache:
  paths:
    - ccache