.gitlab-ci.yml 881 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:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
23
24
    - mkdir Source/build
    - cd Source/build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
25
    - cmake ..
Georg Martin Reinke's avatar
Georg Martin Reinke committed
26
    - make
Markus Mirz's avatar
Markus Mirz committed
27
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
28
29
30
  artifacts:
    paths:
      - Source/build
31
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
32
33
    - docker

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

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