.gitlab-ci.yml 740 Bytes
Newer Older
Jan Dinkelbach's avatar
Jan Dinkelbach committed
1
2
variables:
    DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
Jan Dinkelbach's avatar
Jan Dinkelbach committed
3
    DOCKER_IMAGE_DEV: cimpy
Jan Dinkelbach's avatar
Jan Dinkelbach committed
4
5
6
7
  
stages:
- prepare
- generate
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
8
- test
Jan Dinkelbach's avatar
Jan Dinkelbach committed
9
10
11
12
13
14
15
16
17
18
19
20
21

docker:
    stage: prepare
    script:
        - docker build -t ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} .
    tags:
        - shell
        - linux


documentation:
    stage: generate
    script:
Jan Dinkelbach's avatar
Jan Dinkelbach committed
22
        - cd scripts && ./docu.sh
Jan Dinkelbach's avatar
Jan Dinkelbach committed
23
24
25
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    artifacts:
        paths:
Jan Dinkelbach's avatar
Jan Dinkelbach committed
26
            - documentation
Jan Dinkelbach's avatar
Jan Dinkelbach committed
27
28
    tags:
        - docker
Philipp Reuber's avatar
Philipp Reuber committed
29
30
31
32
33
34

test:pytest:
    stage: test
    variables:
        PYTHONPATH: "build/Source/Python:Source/Python"
    script:
Philipp Reuber's avatar
Philipp Reuber committed
35
        - python3 ../setup.py develop
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
36
        - pytest -v tests.py
Philipp Reuber's avatar
Philipp Reuber committed
37
38
39
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker