.gitlab-ci.yml 1.88 KB
Newer Older
Sebastian Volke's avatar
Sebastian Volke committed
1
stages:
Alexander Wiebel's avatar
Alexander Wiebel committed
2
        - initialJobs
3
        - stylecheck_doc
Sebastian Volke's avatar
Sebastian Volke committed
4
        - test
5
        - testDebug
Sebastian Volke's avatar
Sebastian Volke committed
6

Alexander Wiebel's avatar
Alexander Wiebel committed
7 8
init1:
        stage: initialJobs
9 10 11 12
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
Alexander Wiebel's avatar
Alexander Wiebel committed
13 14
        script:
                - echo "Init1 job output"
15 16 17 18 19
                - mkdir -p build
                - cd build
                - mkdir -p release
                - cd release
                - cmake ../../src -DCMAKE_BUILD_TYPE=Release
Alexander Wiebel's avatar
Alexander Wiebel committed
20
                - exit 0
Alexander Wiebel's avatar
Alexander Wiebel committed
21 22 23 24
init2:
        stage: initialJobs
        script:
                - echo "Init2 job output"
Alexander Wiebel's avatar
Alexander Wiebel committed
25
                - exit 1
26
        allow_failure: true
Alexander Wiebel's avatar
Alexander Wiebel committed
27

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
stylecheck_doc_job:
        stage: stylecheck_doc
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
        script:
                - ls
                - mkdir -p build
                - cd build
                - ls
                - mkdir -p release
                - ls
                - make stylecheck
                - make doc

Sebastian Volke's avatar
Sebastian Volke committed
44 45
buildAndTest:
        stage: test
46
        cache:
47
                key: "CacheRelease"
48
                paths:
49
                        - build/release
Sebastian Volke's avatar
Sebastian Volke committed
50
        script:
51
                - pwd
52
                - mkdir -p build
53
                - cd build
54 55
                - mkdir -p release
                - cd release
56
                - cmake ../../src -DCMAKE_BUILD_TYPE=Release
57
                - make -j 8
58
                - make vtest
59 60 61 62
                
buildAndTestDebug:
        stage: testDebug
        cache:
63
                key: "CacheDebug"
64 65 66
                paths:
                        - build/debug
        script:
67
                - pwd
68 69 70 71
                - mkdir -p build
                - cd build
                - mkdir -p debug
                - cd debug
72
                - cmake ../../src -DCMAKE_BUILD_TYPE=Debug
73 74
                - make -j 8
                - make vtest