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

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

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

build:
  stage: build
  script:
    - make -C Source
20
  image: ${DOCKER_IMAGE}
21
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
22
23
24
25
26
    - docker

test:
  stage: test
  script:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
27
    - make -C Source tests
Georg Martin Reinke's avatar
Georg Martin Reinke committed
28
    - cd Source/Tests
Georg Martin Reinke's avatar
Georg Martin Reinke committed
29
    - python3 run_tests.py
30
  image: ${DOCKER_IMAGE}