Skip to content

Commit 278b0eb

Browse files
authored
Remove code formatting check because it proves to troublesome in the daily work (always leading to additional 'code formatting' commits at the end of PRs (#91)
1 parent 380c433 commit 278b0eb

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: .travis.yml

-19
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,6 @@ matrix:
1111
- BOARD="arduino:samd:mkrwan1300"
1212
- env:
1313
- BOARD="esp8266:esp8266:huzzah"
14-
- env:
15-
- NAME=Code Formatting Check
16-
# must define an empty before_install phase, otherwise the default one is used
17-
before_install: true
18-
install:
19-
# install Artistic Style code formatter tool: http://astyle.sourceforge.net
20-
- |
21-
mkdir "${HOME}/astyle";
22-
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";
23-
tar --extract --file="${HOME}/astyle/astyle.tar.gz" --directory="${HOME}/astyle";
24-
cd "${HOME}/astyle/astyle/build/gcc";
25-
make;
26-
export PATH=$PWD/bin:$PATH;
27-
cd "$TRAVIS_BUILD_DIR"
28-
# download Arduino's Artistic Style configuration file
29-
- wget --directory-prefix="${HOME}/astyle" https://raw.githubusercontent.com/arduino/Arduino/master/build/shared/examples_formatter.conf
30-
script:
31-
# check code formatting
32-
- 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'
3314
- env:
3415
- NAME=Spell Check
3516
language: python

0 commit comments

Comments
 (0)