This commit is contained in:
parent
ca39b7edc9
commit
7e06da5fc0
@ -8,7 +8,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: cppbuilder:v0.3
|
image: cppbuilder:v0.4
|
||||||
commands:
|
commands:
|
||||||
- cd mario
|
- cd mario
|
||||||
- mkdir build
|
- mkdir build
|
||||||
@ -25,10 +25,10 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: formatting-check
|
- name: formatting-check
|
||||||
image: cppbuilder:v0.3
|
image: cppbuilder:v0.4
|
||||||
commands:
|
commands:
|
||||||
- cd mario
|
- cd mario
|
||||||
- FORMAT="ok"
|
- 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
|
- rm temp.pp
|
||||||
- if [ "$FORMAT" == "nok" ] ; then exit 1 ; fi
|
- if [ "$FORMAT" == "nok" ] ; then exit 1 ; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user