.gitlab-ci.yml 522 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
8
  - docker
9
10
11
12

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

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

31
32
33
34
35
36
test:
  stage: test
  script:
    - python3 Source/Tests/run_tests.py
  tags:
    - docker