.gitlab-ci.yml 3.65 KB
Newer Older
1 2 3 4 5
stages:
        - Initialization_stage
        - Stylecheck_doc_stage
        - Build_and_test_release_stage
        - Build_and_test_debug_stage
Robin Eschbach's avatar
Robin Eschbach committed
6 7
        - Build_appimage_stage
        - Upload_artifacts_stage
8 9 10 11 12 13 14

create_directory_and_cmake___release:
        stage: Initialization_stage
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
Robin Eschbach's avatar
Robin Eschbach committed
15
        image: ladbukkit/openwalnut_build_environment:1.2
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
        script:
                - ls
                - mkdir -p build
                - cd build
                - mkdir -p release
                - cd release
                - ls
                - cmake ../../src -DCMAKE_BUILD_TYPE=Release
                - ls
                
create_directory_and_cmake___debug:
        stage: Initialization_stage
        cache:
                key: "CacheDebug"
                paths:
                        - build/debug
Robin Eschbach's avatar
Robin Eschbach committed
32
        image: ladbukkit/openwalnut_build_environment:1.2
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
        script:
                - ls
                - mkdir -p build
                - cd build
                - mkdir -p debug
                - cd debug
                - ls
                - cmake ../../src -DCMAKE_BUILD_TYPE=Debug
                - ls

stylecheck_job:
        stage: Stylecheck_doc_stage
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
Robin Eschbach's avatar
Robin Eschbach committed
49
        image: ladbukkit/openwalnut_build_environment:1.2
50 51 52 53 54
        script:
                - pwd
                - cd build/release
                - pwd 
                - ls
55
                - make stylecheck -j 8
56 57 58 59 60 61 62

doc_job:
        stage: Stylecheck_doc_stage
        cache:
                key: "CacheDebug"
                paths:
                        - build/debug
Robin Eschbach's avatar
Robin Eschbach committed
63
        image: ladbukkit/openwalnut_build_environment:1.2
64
        script:
65
                - doxygen --version
66 67 68 69 70 71 72 73 74 75 76 77
                - pwd
                - cd build/debug
                - pwd
                - ls
                - make doc

buildAndTest:
        stage: Build_and_test_release_stage
        cache:
                key: "CacheRelease"
                paths:
                        - build/release
Robin Eschbach's avatar
Robin Eschbach committed
78
        image: ladbukkit/openwalnut_build_environment:1.2
79 80 81 82 83 84 85 86 87 88 89 90 91 92
        script:
                - pwd
                - cd build/release
                - pwd
                - ls
                - make -j 8
                - make vtest
                
buildAndTestDebug:
        stage: Build_and_test_debug_stage
        cache:
                key: "CacheDebug"
                paths:
                        - build/debug
Robin Eschbach's avatar
Robin Eschbach committed
93
        image: ladbukkit/openwalnut_build_environment:1.2
94 95 96 97 98 99 100
        script:
                - pwd
                - cd build/debug
                - pwd
                - ls
                - make -j 8
                - make vtest
101 102

buildAppImage:
Robin Eschbach's avatar
Robin Eschbach committed
103
        stage: Build_appimage_stage
104
        image: appimagecrafters/appimage-builder:0.8.8
105 106
        script:
                - pwd
107 108 109 110 111 112 113 114
                - mkdir -p tools/AppImage/AppImageBuild
                - rm -rf tools/AppImage/AppImageBuild/AppDir
                - cd build/release
                - pwd
                - ls
                - make install DESTDIR=../../tools/AppImage/AppImageBuild/AppDir
                - pwd
                - cd ../../tools/AppImage
115 116
                - pwd
                - ls
117 118
                - chmod +x appimage.sh
                - ./appimage.sh package
Robin Eschbach's avatar
Robin Eschbach committed
119 120 121 122 123 124 125 126 127

uploadArtifacts:
        stage: Upload_artifacts_stage
        image: ladbukkit/openwalnut_build_environment:1.2
        script:
                - pwd
                - cd tools/upload
                - pwd
                - ls
128
                - chmod +x seafile.sh
Robin Eschbach's avatar
Robin Eschbach committed
129
                - ./seafile.sh