.gitlab-ci.yml 736 Bytes
Newer Older
1
2
variables:
  DOCKER_IMAGE: dpsim-dev-${CI_COMMIT_REF_NAME}
3
  GIT_SUBMODULE_STRATEGY: recursive
4

5
6
7
stages:
  - prepare
  - build
Georg Martin Reinke's avatar
Georg Martin Reinke committed
8
  - docs
9
  - test
10
11
12
13

docker:
  stage: prepare
  script:
14
    - docker build -t ${DOCKER_IMAGE} .
15
16
17
18
19
20
  tags:
    - shell

build:
  stage: build
  script:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
21
22
    - mkdir Source/build
    - cd Source/build
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
23
    - cmake ..
Georg Martin Reinke's avatar
Georg Martin Reinke committed
24
    - make
25
  image: ${DOCKER_IMAGE}
26
27
28
  artifacts:
    paths:
      - Source/build
29
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
30
31
    - docker

Georg Martin Reinke's avatar
Georg Martin Reinke committed
32
33
34
docs:
  stage: docs
  script:
35
    - make docs
Georg Martin Reinke's avatar
Georg Martin Reinke committed
36
37
38
  image: ${DOCKER_IMAGE}
  artifacts:
    paths:
39
      - Documentation/html
Georg Martin Reinke's avatar
Georg Martin Reinke committed
40
41
42
  tags:
    - docker

43
44
test:
  stage: test
45
46
  variables:
    PYTHONPATH: Source/build
47
  script:
48
    - python3 Examples/Python/ci.py
49
50
51
  image: ${DOCKER_IMAGE}
  tags:
    - docker