From 433c0d1f6ff403287d2a6e6e1cddc89d2a9368d2 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Fri, 21 Feb 2020 11:06:04 +0100 Subject: [PATCH] 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 --- .travis.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68ff08503..3ec87b9b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,25 +11,6 @@ matrix: - BOARD="arduino:samd:mkrwan1300" - env: - BOARD="esp8266:esp8266:huzzah" - - env: - - NAME=Code Formatting Check - # must define an empty before_install phase, otherwise the default one is used - before_install: true - install: - # install Artistic Style code formatter tool: http://astyle.sourceforge.net - - | - mkdir "${HOME}/astyle"; - 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"; - tar --extract --file="${HOME}/astyle/astyle.tar.gz" --directory="${HOME}/astyle"; - cd "${HOME}/astyle/astyle/build/gcc"; - make; - export PATH=$PWD/bin:$PATH; - cd "$TRAVIS_BUILD_DIR" - # download Arduino's Artistic Style configuration file - - wget --directory-prefix="${HOME}/astyle" https://raw.githubusercontent.com/arduino/Arduino/master/build/shared/examples_formatter.conf - script: - # check code formatting - - 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' - env: - NAME=Spell Check language: python