.gitlab-ci.yml 873 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
  - test
11
12
13
14

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

build:
  stage: build
  script:
Markus Mirz's avatar
Markus Mirz committed
23
24
    - mkdir build
    - cd build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
25
    - cmake ..
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
37
    - ls
    - cd build
Markus Mirz's avatar
Markus Mirz committed
38
    - cmake ..
39
    - make docs
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:
43
      - Documentation/html
Georg Martin Reinke's avatar
Georg Martin Reinke committed
44
45
46
  tags:
    - docker

47
48
test:
  stage: test
49
50
  variables:
    PYTHONPATH: Source/build
51
  script:
52
    - python3 Examples/Python/ci.py
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
53
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
54
55
  tags:
    - docker