Skip to content

Commit 1ac6b2d

Browse files
committed
Remove code formatting CI check
Unfortunately, this turned out to be too ambitious of an initiative for Arduino. See arduino-libraries/Arduino_MKRGPS PR# 1 for details.
1 parent ebd7ac2 commit 1ac6b2d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

.travis.yml

-20
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,6 @@ matrix:
2828
install:
2929
- arduino-cli core install arduino:sam
3030

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-
5131
# check all files for commonly misspelled words
5232
- env:
5333
- NAME='Spell Check'

0 commit comments

Comments
 (0)