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

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

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

Georg Martin Reinke's avatar
Georg Martin Reinke committed
17
18
19
20
21
22
23
24
25
26
27
28
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

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

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