.gitlab-ci.yml 1.36 KB
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
4

Jan Dinkelbach's avatar
Jan Dinkelbach committed
5
6
7
stages:
- prepare
- generate
8
9
10
11
- test-import
- test-export-with-imported-files
- test-export-with-exported-files

Jan Dinkelbach's avatar
Jan Dinkelbach committed
12
13
14
15
16
17
18
19
20
21
22
23
24

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
25
        - cd scripts && ./docu.sh
Jan Dinkelbach's avatar
Jan Dinkelbach committed
26
27
28
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    artifacts:
        paths:
Jan Dinkelbach's avatar
Jan Dinkelbach committed
29
            - documentation
Jan Dinkelbach's avatar
Jan Dinkelbach committed
30
31
    tags:
        - docker
Philipp Reuber's avatar
Philipp Reuber committed
32

33
34
35
36
37
test:import:
    stage: test-import
    variables:
        PYTHONPATH: "build/Source/Python:Source/Python"
    script:
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
38
        - cd tests && pytest -v test_import.py
39
40
41
42
43
44
45
46
47
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker

test:export-with-imported-files:
    stage: test-export-with-imported-files
    variables:
        PYTHONPATH: "build/Source/Python:Source/Python"
    script:
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
48
        - cd tests && pytest -v test_export_with_imported_files.py
49
50
51
52
53
54
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker

test:export-export:
    stage: test-export-with-exported-files
Philipp Reuber's avatar
Philipp Reuber committed
55
56
57
    variables:
        PYTHONPATH: "build/Source/Python:Source/Python"
    script:
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
58
        - cd tests && pytest -v test_export_with_exported_files.py
Philipp Reuber's avatar
Philipp Reuber committed
59
60
61
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker