.gitlab-ci.yml 752 Bytes
Newer Older
1
variables:
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
2
  DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
Markus Mirz's avatar
Markus Mirz committed
3
  DOCKER_IMAGE_DEV: dpsim-dev
4
  GIT_SUBMODULE_STRATEGY: recursive
5

6
7
8
stages:
  - prepare
  - build
Georg Martin Reinke's avatar
Georg Martin Reinke committed
9
  - docs
10
11
12
13

docker:
  stage: prepare
  script:
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
14
    - docker build -t ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} .
Markus Mirz's avatar
Markus Mirz committed
15
    - docker images
16
  tags:
Markus Mirz's avatar
Markus Mirz committed
17
    - shell
18
19
20
21

build:
  stage: build
  script:
Markus Mirz's avatar
Markus Mirz committed
22
23
    - mkdir build
    - cd build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
24
    - cmake ..
Markus Mirz's avatar
Markus Mirz committed
25
    - make
Markus Mirz's avatar
Markus Mirz committed
26
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
27
28
  artifacts:
    paths:
Markus Mirz's avatar
Markus Mirz committed
29
      - build
30
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
31
32
    - docker

Georg Martin Reinke's avatar
Georg Martin Reinke committed
33
34
35
docs:
  stage: docs
  script:
Markus Mirz's avatar
Markus Mirz committed
36
    - cd build
Markus Mirz's avatar
Markus Mirz committed
37
    - cmake ..
38
    - make docs
Markus Mirz's avatar
Markus Mirz committed
39
    - make docs_cxx
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
40
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
Georg Martin Reinke's avatar
Georg Martin Reinke committed
41
42
  artifacts:
    paths:
Markus Mirz's avatar
Markus Mirz committed
43
44
      - build/Documentation/html
      - build/Documentation/Cxx/html
Georg Martin Reinke's avatar
Georg Martin Reinke committed
45
46
  tags:
    - docker