Commit 9b612479 authored by Felix Delattre's avatar Felix Delattre Committed by Felix
Browse files

Added code format check to CI pipeline

parent 648913de
......@@ -3,9 +3,11 @@ Makefile*
*.la
*.lo
*.slo
.dirstamp
.deps/
.libs/
autom4te.cache/
compile
config.guess
config.h
config.h.in
......
......@@ -2,18 +2,30 @@ dist: focal
language: cpp
compiler:
- clang
- clang
before_install:
- sudo apt update -y
install:
- sudo apt -y install apache2-dev libcairo2-dev libcurl4-gnutls-dev libiniparser-dev libmapnik-dev
- sudo apt update -y
jobs:
include:
- stage: code formatting
install:
- sudo apt -y install astyle
script:
- astyle --options=none --lineend=linux --style=1tbs --indent=force-tab=8 --break-blocks --indent-switches --pad-oper --pad-header --unpad-paren --suffix=none includes/* src/*
- |
if [[ -n $(git diff) ]]; then
echo "You must run 'astyle --options=none --lineend=linux --style=1tbs --indent=force-tab=8 --break-blocks --indent-switches --pad-oper --pad-header --unpad-paren --suffix=none includes/* src/*' before submitting a pull request"
echo ""
git diff
exit -1
fi
- stage: tests
install:
- sudo apt -y install apache2-dev libcairo2-dev libcurl4-gnutls-dev libiniparser-dev libmapnik-dev
script:
- ./autogen.sh
- ./configure
- make
- make test
- ./autogen.sh
- ./configure
- make
- make test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment