.gitlab-ci.yml 855 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

Markus Mirz's avatar
Markus Mirz committed
12
before_script:
Markus Mirz's avatar
Markus Mirz committed
13
14
  - docker images

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

build:
  stage: build
  script:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
25
26
    - mkdir Source/build
    - cd Source/build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
27
    - cmake ..
Georg Martin Reinke's avatar
Georg Martin Reinke committed
28
    - make
Markus Mirz's avatar
Markus Mirz committed
29
  image: ea115841e858
30
31
32
  artifacts:
    paths:
      - Source/build
33
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
34
35
    - docker

Georg Martin Reinke's avatar
Georg Martin Reinke committed
36
37
38
docs:
  stage: docs
  script:
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