.gitlab-ci.yml 891 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 ..
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
38
    - ls
    - cd build
Markus Mirz's avatar
Markus Mirz committed
39
    - cmake ..
40
    - make docs
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
41
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
Georg Martin Reinke's avatar
Georg Martin Reinke committed
42
43
  artifacts:
    paths:
44
      - Documentation/html
Georg Martin Reinke's avatar
Georg Martin Reinke committed
45
46
47
  tags:
    - docker

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