.gitlab-ci.yml 2.32 KB
Newer Older
Sebastian Volke's avatar
Sebastian Volke committed
1
stages:
2
        - Initialization_stage
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
3 4 5
        - Stylecheck_doc_stage
        - Build_and_test_release_stage
        - Build_and_test_debug_stage
Sebastian Volke's avatar
Sebastian Volke committed
6

Alexander Wiebel's avatar
Alexander Wiebel committed
7
create_directory_and_cmake___release:
8
        stage: Initialization_stage
9 10 11 12
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
Alexander Wiebel's avatar
Alexander Wiebel committed
13
        script:
14
                - ls
15 16 17 18
                - mkdir -p build
                - cd build
                - mkdir -p release
                - cd release
19
                - ls
20
                - cmake ../../src -DCMAKE_BUILD_TYPE=Release
21
                - ls
22
                
23 24
create_directory_and_cmake___debug:
        stage: Initialization_stage
25 26 27 28 29 30 31 32 33 34 35 36 37
        cache:
                key: "CacheDebug"
                paths:
                        - build/debug
        script:
                - ls
                - mkdir -p build
                - cd build
                - mkdir -p debug
                - cd debug
                - ls
                - cmake ../../src -DCMAKE_BUILD_TYPE=Debug
                - ls
Alexander Wiebel's avatar
Alexander Wiebel committed
38

39
stylecheck_job:
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
40
        stage: Stylecheck_doc_stage
41 42 43 44 45
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
        script:
46
                - pwd
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
47 48
                - cd build/release
                - pwd 
49
                - ls
50
                - make stylecheck
51 52

doc_job:
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
53
        stage: Stylecheck_doc_stage
54
        cache:
55
                key: "CacheDebug"
56
                paths:
57
                        - build/debug
58 59
        script:
                - pwd
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
60 61
                - cd build/debug
                - pwd
62
                - ls
63 64
                - make doc

Sebastian Volke's avatar
Sebastian Volke committed
65
buildAndTest:
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
66
        stage: Build_and_test_release_stage
67
        cache:
68
                key: "CacheRelease"
69
                paths:
70
                        - build/release
Sebastian Volke's avatar
Sebastian Volke committed
71
        script:
72
                - pwd
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
73 74 75
                - cd build/release
                - pwd
                - ls
76
                - make -j 8
77
                - make vtest
78 79
                
buildAndTestDebug:
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
80
        stage: Build_and_test_debug_stage
81
        cache:
82
                key: "CacheDebug"
83 84 85
                paths:
                        - build/debug
        script:
86
                - pwd
Alexander Wiebel's avatar
[CLEAN]  
Alexander Wiebel committed
87 88
                - cd build/debug
                - pwd
89
                - ls
90 91
                - make -j 8
                - make vtest