.gitlab-ci.yml 3.7 KB
Newer Older
Ben Boeckel's avatar
Ben Boeckel committed
1 2 3 4 5 6 7
include:
    # Metadata shared my many jobs
    - local: .gitlab/rules.yml
    - local: .gitlab/artifacts.yml

    # OS builds.
    - local: .gitlab/os-linux.yml
Ben Boeckel's avatar
Ben Boeckel committed
8
    - local: .gitlab/os-macos.yml
Ben Boeckel's avatar
Ben Boeckel committed
9
    - local: .gitlab/os-windows.yml
Ben Boeckel's avatar
Ben Boeckel committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131

stages:
    - build
    - test
    - analyze

################################################################################
# Job declarations
#
# Each job must pull in each of the following keys:
#
#   - a "base image"
#   - a build script
#   - tags for the jobs
#   - rules for when to run the job
#
# Additionally, jobs may also contain:
#
#   - artifacts
#   - dependency/needs jobs for required jobs
################################################################################

# Linux

## Build and test

build:fedora32:
    extends:
        - .fedora32_plain
        - .cmake_build_linux
        - .cmake_build_artifacts
        - .linux_builder_tags
        - .run_automatically

test:fedora32:
    extends:
        - .fedora32_plain
        - .cmake_test_linux
        - .linux_test_tags
        - .run_automatically
    dependencies:
        - build:fedora32
    needs:
        - build:fedora32

## Lint builds

build:fedora32-asan:
    extends:
        - .fedora32_asan
        - .cmake_build_linux
        - .cmake_build_artifacts
        - .linux_builder_tags
        - .run_automatically

test:fedora32-asan:
    extends:
        - .fedora32_asan
        - .cmake_memcheck_linux
        - .linux_test_priv_tags
        - .run_automatically
    dependencies:
        - build:fedora32-asan
    needs:
        - build:fedora32-asan

build:fedora32-ubsan:
    extends:
        - .fedora32_ubsan
        - .cmake_build_linux
        - .cmake_build_artifacts
        - .linux_builder_tags
        - .run_automatically

test:fedora32-ubsan:
    extends:
        - .fedora32_ubsan
        - .cmake_memcheck_linux
        - .linux_test_tags
        - .run_automatically
    dependencies:
        - build:fedora32-ubsan
    needs:
        - build:fedora32-ubsan

build:fedora32-tidy:
    extends:
        - .fedora32_tidy
        - .cmake_build_linux
        - .linux_builder_tags
        - .run_automatically

build:fedora32-coverage:
    extends:
        - .fedora32_coverage
        - .cmake_build_linux
        - .cmake_build_artifacts
        - .linux_builder_tags
        - .run_automatically

test:fedora32-coverage:
    extends:
        - .fedora32_coverage
        - .cmake_test_linux
        - .cmake_coverage_artifacts
        - .linux_test_tags
        - .run_automatically
    dependencies:
        - build:fedora32-coverage
    needs:
        - build:fedora32-coverage

analyze:fedora32-coverage:
    extends:
        - .fedora32_coverage
        - .cmake_coverage_linux
        - .linux_builder_tags
        - .run_automatically
    dependencies:
        - test:fedora32-coverage
    needs:
        - test:fedora32-coverage
Ben Boeckel's avatar
Ben Boeckel committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154

# macOS

## Build and test

build:macos:
    extends:
        - .macos_plain
        - .cmake_build_macos
        - .cmake_build_artifacts
        - .macos_builder_tags
        - .run_automatically

test:macos:
    extends:
        - .macos_plain
        - .cmake_test_macos
        - .macos_builder_tags
        - .run_automatically
    dependencies:
        - build:macos
    needs:
        - build:macos
Ben Boeckel's avatar
Ben Boeckel committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177

# Windows

## Build and test

build:windows-vs2019-ninja:
    extends:
        - .windows_vs2019_ninja
        - .cmake_build_windows
        - .cmake_build_artifacts
        - .windows_builder_tags
        - .run_automatically

test:windows-vs2019-ninja:
    extends:
        - .windows_vs2019_ninja
        - .cmake_test_windows
        - .windows_builder_tags
        - .run_automatically
    dependencies:
        - build:windows-vs2019-ninja
    needs:
        - build:windows-vs2019-ninja