From 56a6d85c41943df8a7cdf340d4f77c7627930ba4 Mon Sep 17 00:00:00 2001 From: Richard Wackerbarth Date: Fri, 18 Sep 2015 09:02:59 -0500 Subject: [PATCH] Add (disabled) style test --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 77d4bfd1a3..fecff6de19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,13 +26,24 @@ install: - mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C - git clone https://github.com/lincomatic/LiquidTWI2.git - mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2 + # Install astyle + - wget https://github.com/timonwong/astyle-mirror/archive/master.zip + - unzip master.zip + - cd astyle-mirror-master/build/gcc/ + - make prefix=$HOME astyle install before_script: # arduino requires an X server even with command line # https://github.com/arduino/Arduino/issues/1981 - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log & # change back to home directory for compiling - cd $TRAVIS_BUILD_DIR + # Check style + # ~/bin/astyle --recursive --options=.astylerc "Marlin/*.h" "Marlin/*.cpp" script: + # Abort on style errors + # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; exit -999; fi + # Relaxed Travis check + # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; fi # build default config - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino # backup configuration.h