Skip to content

Commit

Permalink
Add clang-format and clang-tidy to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GereonV committed Oct 10, 2024
1 parent 013dfc3 commit 36fa863
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
default:
image: ubuntu:latest

build:
stage: build
image: ubuntu:latest
script: |
apt-get update
apt-get install -y g++ make
make release
script:
- |
apt-get update
apt-get install -y g++ make
- make BIN=bin/program release
artifacts:
paths:
- bin/

run:
stage: test
image: ubuntu:latest
script: |
apt-get update
apt-get install -y g++ make
make release
bin/program
script: bin/program
variables:
GIT_STRATEGY: none
check-formatting:
stage: test
allow_failure: true
script:
- |
apt-get update
apt-get install -y clang-format
- clang-format --dry-run --Werror src/*
needs: []
lint:
stage: test
allow_failure: true
script:
- |
apt-get update
apt-get install -y clang-tidy
- clang-tidy src/*

0 comments on commit 36fa863

Please sign in to comment.