CI/CD
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
zv0n 2021-10-17 13:18:28 +02:00
parent 28d7e208fc
commit 3bf086f48a

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
---
kind: pipeline
type: docker
name: mario-build
platform:
os: linux
arch: arm64
steps:
- name: build
image: cppbuilder:v0.2
commands:
- cd mario
- mkdir build
- cd build
- cmake ..
- make
---
kind: pipeline
type: docker
name: mario-formatting
platform:
os: linux
arch: arm64
steps:
- name: formatting-check
image: cppbuilder:v0.2
commands:
- cd mario
- FORMAT="ok"
- while read f ; do clang-format -style=file "$f" > temp.pp ; if [ $(diff temp.pp "$f" | wc -l) -gt 0 ] ; then echo "$f needs reformatting" ; FORMAT="nok" ; fi ; done <<< $(find . -iname "*pp")
- rm temp.pp
- if [ "$FORMAT" == "nok" ] ; then exit 1 ; fi