.gitlab-ci.yml 1.35 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
- test
9

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

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

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

Jan Dinkelbach's avatar
Jan Dinkelbach committed
42
test:export-against-imported-files:
43
    stage: test
44
45
46
    variables:
        PYTHONPATH: "build/Source/Python:Source/Python"
    script:
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
47
        - python3 setup.py develop
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
48
        - cd tests && pytest -v test_export_with_imported_files.py
49
50
51
52
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker

Jan Dinkelbach's avatar
Jan Dinkelbach committed
53
test:export-against-exported-files:
54
    stage: test
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
        - python3 setup.py develop
Philipp Reuber's avatar
fix yml    
Philipp Reuber committed
59
        - cd tests && pytest -v test_export_with_exported_files.py
Philipp Reuber's avatar
Philipp Reuber committed
60
61
62
    image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
    tags:
        - docker