File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,6 @@ matrix:
1010 - BOARD="arduino:samd:mkrwifi1010"
1111 - env :
1212 - BOARD="arduino:samd:mkrgsm1400"
13- - env :
14- - NAME=Code Formatting Check
15- # must define an empty before_install phase, otherwise the default one is used
16- before_install : true
17- install :
18- # install Artistic Style code formatter tool: http://astyle.sourceforge.net
19- - |
20- mkdir "${HOME}/astyle";
21- wget --no-verbose --output-document="${HOME}/astyle/astyle.tar.gz" "https://iweb.dl.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz";
22- tar --extract --file="${HOME}/astyle/astyle.tar.gz" --directory="${HOME}/astyle";
23- cd "${HOME}/astyle/astyle/build/gcc";
24- make;
25- export PATH=$PWD/bin:$PATH;
26- cd "$TRAVIS_BUILD_DIR"
27- # download Arduino's Artistic Style configuration file
28- - wget --directory-prefix="${HOME}/astyle" https://raw.githubusercontent.com/arduino/Arduino/master/build/shared/examples_formatter.conf
29- script :
30- # check code formatting
31- - find . -regextype posix-extended -path './.git' -prune -or \( -iregex '.*\.((ino)|(h)|(hpp)|(hh)|(hxx)|(h\+\+)|(cpp)|(cc)|(cxx)|(c\+\+)|(cp)|(c)|(ipp)|(ii)|(ixx)|(inl)|(tpp)|(txx)|(tpl))$' -and -type f \) -print0 | xargs -0 -L1 bash -c 'if ! diff "$0" <(astyle --options=${HOME}/astyle/examples_formatter.conf --dry-run < "$0"); then echo "Non-compliant code formatting in $0"; false; fi'
3213 - env :
3314 - NAME=Spell Check
3415 language : python
You can’t perform that action at this time.
0 commit comments