Ver código fonte

Add (disabled) style test

Richard Wackerbarth 9 anos atrás
pai
commit
56a6d85c41
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11
    0
      .travis.yml

+ 11
- 0
.travis.yml Ver arquivo

@@ -26,13 +26,24 @@ install:
26 26
   - mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
27 27
   - git clone https://github.com/lincomatic/LiquidTWI2.git
28 28
   - mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
29
+  # Install astyle
30
+  - wget https://github.com/timonwong/astyle-mirror/archive/master.zip
31
+  - unzip master.zip
32
+  - cd astyle-mirror-master/build/gcc/
33
+  - make prefix=$HOME astyle install
29 34
 before_script:
30 35
   # arduino requires an X server even with command line
31 36
   # https://github.com/arduino/Arduino/issues/1981
32 37
   - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
33 38
   # change back to home directory for compiling
34 39
   - cd $TRAVIS_BUILD_DIR
40
+  # Check style
41
+  # ~/bin/astyle --recursive --options=.astylerc "Marlin/*.h" "Marlin/*.cpp"
35 42
 script:
43
+  # Abort on style errors
44
+  # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; exit -999; fi
45
+  # Relaxed Travis check
46
+  # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; fi
36 47
   # build default config
37 48
   - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
38 49
   # backup configuration.h

Carregando…
Cancelar
Salvar