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

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

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

Georg Martin Reinke's avatar
Georg Martin Reinke committed
18
19
20
21
22
23
24
25
26
27
28
29
build-cim:
  stage: build-cim
  script:
    - mkdir -p Source/CIM-XML-Parser/build
    - cd Source/CIM-XML-Parser/build
    - cmake -DBUILD_SHARED_LIBS=ON ..
    - make
    - cp libCIMParser.so thirdparty/arabica/libarabica.so /usr/local/lib
  image: ${DOCKER_IMAGE}
  tags:
    - docker

30
31
32
33
build:
  stage: build
  script:
    - make -C Source
34
  image: ${DOCKER_IMAGE}
35
  tags:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
36
37
38
39
40
    - docker

test:
  stage: test
  script:
Georg Martin Reinke's avatar
Georg Martin Reinke committed
41
    - make -C Source tests
Georg Martin Reinke's avatar
Georg Martin Reinke committed
42
    - cd Source/Tests
Georg Martin Reinke's avatar
Georg Martin Reinke committed
43
    - python3 run_tests.py
44
  image: ${DOCKER_IMAGE}
Georg Martin Reinke's avatar
Georg Martin Reinke committed
45
46
  tags:
    - docker