|
|
|
|
26
|
- mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
|
26
|
- mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
|
27
|
- git clone https://github.com/lincomatic/LiquidTWI2.git
|
27
|
- git clone https://github.com/lincomatic/LiquidTWI2.git
|
28
|
- mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
|
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
|
before_script:
|
34
|
before_script:
|
30
|
# arduino requires an X server even with command line
|
35
|
# arduino requires an X server even with command line
|
31
|
# https://github.com/arduino/Arduino/issues/1981
|
36
|
# https://github.com/arduino/Arduino/issues/1981
|
32
|
- Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
|
37
|
- Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
|
33
|
# change back to home directory for compiling
|
38
|
# change back to home directory for compiling
|
34
|
- cd $TRAVIS_BUILD_DIR
|
39
|
- cd $TRAVIS_BUILD_DIR
|
|
|
40
|
+ # Check style
|
|
|
41
|
+ # ~/bin/astyle --recursive --options=.astylerc "Marlin/*.h" "Marlin/*.cpp"
|
35
|
script:
|
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
|
# build default config
|
47
|
# build default config
|
37
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
48
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
38
|
# backup configuration.h
|
49
|
# backup configuration.h
|