File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -28,26 +28,6 @@ matrix:
28
28
install :
29
29
- arduino-cli core install arduino:sam
30
30
31
- # check all code files for compliance with the Arduino code formatting style
32
- - env :
33
- - NAME='Code Formatting Check'
34
- language : minimal
35
- before_install :
36
- # install Artistic Style code formatter tool: http://astyle.sourceforge.net
37
- - |
38
- mkdir "${HOME}/astyle";
39
- 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";
40
- tar --extract --file="${HOME}/astyle/astyle.tar.gz" --directory="${HOME}/astyle";
41
- cd "${HOME}/astyle/astyle/build/gcc";
42
- make;
43
- export PATH="$PWD/bin:$PATH";
44
- cd "$TRAVIS_BUILD_DIR"
45
- # download Arduino's Artistic Style configuration file
46
- - wget --directory-prefix="${HOME}/astyle" https://raw.githubusercontent.com/arduino/Arduino/master/build/shared/examples_formatter.conf
47
- script :
48
- # check code formatting
49
- - 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'
50
-
51
31
# check all files for commonly misspelled words
52
32
- env :
53
33
- NAME='Spell Check'
You can’t perform that action at this time.
0 commit comments