From 7e06da5fc08a090b095a8f3e42ea5e09ac534992 Mon Sep 17 00:00:00 2001 From: zv0n Date: Sun, 17 Oct 2021 13:36:20 +0200 Subject: [PATCH] CI/CD changes --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 35315e9..6f867fc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: build - image: cppbuilder:v0.3 + image: cppbuilder:v0.4 commands: - cd mario - mkdir build @@ -25,10 +25,10 @@ platform: steps: - name: formatting-check - image: cppbuilder:v0.3 + image: cppbuilder:v0.4 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") + - 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