.gitlab-ci.yml 853 Bytes
Newer Older
1
variables:
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
2
3
  DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
  DOCKER_IMAGE_DEV: villas/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} .
16
17
18
19
20
21
  tags:
    - shell

build:
  stage: build
  script:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
22
23
    - mkdir Source/build
    - cd Source/build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
24
    - cmake ..
Georg Martin Reinke's avatar
Georg Martin Reinke committed
25
    - make
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
26
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
27
28
29
  artifacts:
    paths:
      - Source/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:
36
    - make docs
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
37
  image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
Georg Martin Reinke's avatar
Georg Martin Reinke committed
38
39
  artifacts:
    paths:
40
      - Documentation/html
Georg Martin Reinke's avatar
Georg Martin Reinke committed
41
42
43
  tags:
    - docker

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