This won't make much benefits for CI, but for local native builds will significantly speed-up build cycle by allowing parallel build and by using dependency tracking logic. Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
27 lines
528 B
YAML
27 lines
528 B
YAML
image: ubuntu:21.04
|
|
|
|
variables:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
before_script:
|
|
- apt-get --quiet update --yes >/dev/null
|
|
- apt-get --quiet install --yes clang-12 clang-tidy-12 clang-format-12 git libdrm-dev blueprint-tools libgtest-dev make >/dev/null
|
|
|
|
stages:
|
|
- build
|
|
- style
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- make -f .ci/Makefile
|
|
artifacts:
|
|
when: on_failure
|
|
untracked: true
|
|
|
|
checkstyle:
|
|
stage: style
|
|
script: "./.ci/.gitlab-ci-checkcommit.sh"
|
|
artifacts:
|
|
when: on_failure
|
|
untracked: true
|