My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

.travis.yml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. ---
  2. language: c
  3. before_install:
  4. # Travis runs a detached head. We need to find the current branch
  5. - git checkout `git branch --contains HEAD | grep -v '*'`
  6. # Also tags for the root(s) of the minor version(s)
  7. - git fetch origin --tags
  8. - mkdir ~/bin
  9. install:
  10. # Install arduino 1.6.4
  11. - wget http://downloads-02.arduino.cc/arduino-1.6.4-linux64.tar.xz
  12. - tar Jxf arduino-1.6.4-linux64.tar.xz
  13. - sudo mv arduino-1.6.4 /usr/local/share/arduino
  14. - ln -s /usr/local/share/arduino/arduino ~/bin/arduino
  15. # Our custom build commands
  16. - mv LinuxAddons/bin/* ~/bin/
  17. - ls -la ~/bin
  18. # install our platform
  19. - cp -r ArduinoAddons/Arduino_1.6.x/hardware/* /usr/local/share/arduino/hardware
  20. # copy libraries to arduino dir, as conditional includes do not work in .ino files
  21. - cp -r /usr/local/share/arduino/hardware/marlin/avr/libraries/* /usr/local/share/arduino/libraries/
  22. - cp -r ArduinoAddons/Arduino_1.6.x/libraries/* /usr/local/share/arduino/libraries/
  23. # add LiquidCrystal_I2C & LiquidTWI2 libraries
  24. - git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
  25. - mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
  26. - git clone https://github.com/lincomatic/LiquidTWI2.git
  27. - mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
  28. # Install astyle
  29. - wget https://github.com/timonwong/astyle-mirror/archive/master.zip
  30. - unzip master.zip
  31. - cd astyle-mirror-master/build/gcc/
  32. - make prefix=$HOME astyle install
  33. before_script:
  34. # arduino requires an X server even with command line
  35. # https://github.com/arduino/Arduino/issues/1981
  36. - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
  37. # change back to home directory for compiling
  38. - cd $TRAVIS_BUILD_DIR
  39. # Check style
  40. # ~/bin/astyle --recursive --options=.astylerc "Marlin/*.h" "Marlin/*.cpp"
  41. script:
  42. # Abort on style errors
  43. # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; exit -999; fi
  44. # Relaxed Travis check
  45. # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; fi
  46. # build default config
  47. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  48. # backup configuration.h
  49. - cp Marlin/Configuration.h Marlin/Configuration.h.backup
  50. - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
  51. - cp Marlin/pins_RAMPS_13.h Marlin/pins_RAMPS_13.h.backup
  52. # add sensor for bed
  53. - sed -i 's/#define TEMP_SENSOR_BED 0/#define TEMP_SENSOR_BED 1/g' Marlin/Configuration.h
  54. - rm -rf .build/
  55. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  56. # change extruder numbers from 1 to 2
  57. - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_RAMPS_13_EEB/g' Marlin/Configuration.h
  58. - sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
  59. - sed -i 's/#define TEMP_SENSOR_1 0/#define TEMP_SENSOR_1 1/g' Marlin/Configuration.h
  60. #- cat Marlin/Configuration.h
  61. - rm -rf .build/
  62. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  63. # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
  64. - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EEB/#define MOTHERBOARD BOARD_RUMBA/g' Marlin/Configuration.h
  65. - sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
  66. - sed -i 's/#define TEMP_SENSOR_2 0/#define TEMP_SENSOR_2 1/g' Marlin/Configuration.h
  67. - rm -rf .build/
  68. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  69. # enable PIDTEMPBED
  70. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  71. - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h
  72. - rm -rf .build/
  73. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  74. # enable AUTO_BED_LEVELING
  75. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  76. - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
  77. - rm -rf .build/
  78. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  79. # enable AUTO_BED_LEVELING with servos
  80. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  81. - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
  82. - sed -i 's/\/\/#define NUM_SERVOS/#define NUM_SERVOS/g' Marlin/Configuration.h
  83. - sed -i 's/\/\/#define Z_ENDSTOP_SERVO_NR/#define Z_ENDSTOP_SERVO_NR/g' Marlin/Configuration.h
  84. - sed -i 's/\/\/#define SERVO_ENDSTOP_ANGLES/#define SERVO_ENDSTOP_ANGLES/g' Marlin/Configuration.h
  85. - sed -i 's/\/\/#define DEACTIVATE_SERVOS_AFTER_MOVE/#define DEACTIVATE_SERVOS_AFTER_MOVE/g' Marlin/Configuration.h
  86. - rm -rf .build/
  87. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  88. # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
  89. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  90. - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h
  91. - sed -i 's/\/\/#define EEPROM_CHITCHAT/#define EEPROM_CHITCHAT/g' Marlin/Configuration.h
  92. - rm -rf .build/
  93. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  94. ### LCDS ###
  95. # ULTIMAKERCONTROLLER
  96. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  97. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  98. - rm -rf .build/
  99. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  100. # MAKRPANEL
  101. # Needs to use melzi and sanguino hardware
  102. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  103. #- sed -i 's/\/\/#define MAKRPANEL/#define MAKRPANEL/g' Marlin/Configuration.h
  104. #- rm -rf .build/
  105. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  106. # REPRAP_DISCOUNT_SMART_CONTROLLER
  107. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  108. - sed -i 's/\/\/#define REPRAP_DISCOUNT_SMART_CONTROLLER/#define REPRAP_DISCOUNT_SMART_CONTROLLER/g' Marlin/Configuration.h
  109. - rm -rf .build/
  110. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  111. # G3D_PANE
  112. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  113. - sed -i 's/\/\/#define G3D_PANEL/#define G3D_PANEL/g' Marlin/Configuration.h
  114. - rm -rf .build/
  115. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  116. # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  117. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  118. - sed -i 's/\/\/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/g' Marlin/Configuration.h
  119. - rm -rf .build/
  120. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  121. # REPRAPWORLD_KEYPAD
  122. # Cant find configuration details to get it to compile
  123. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  124. #- sed -i 's/\/\/#define ULTRA_LCD/#define ULTRA_LCD/g' Marlin/Configuration.h
  125. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD/#define REPRAPWORLD_KEYPAD/g' Marlin/Configuration.h
  126. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/g' Marlin/Configuration.h
  127. #- rm -rf .build/
  128. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  129. # RA_CONTROL_PANEL
  130. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  131. - sed -i 's/\/\/#define RA_CONTROL_PANEL/#define RA_CONTROL_PANEL/g' Marlin/Configuration.h
  132. - rm -rf .build/
  133. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  134. ### I2C PANELS ###
  135. # LCD_I2C_SAINSMART_YWROBOT
  136. # Failing at the moment needs different library
  137. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  138. #- sed -i 's/\/\/#define LCD_I2C_SAINSMART_YWROBOT/#define LCD_I2C_SAINSMART_YWROBOT/g' Marlin/Configuration.h
  139. #- rm -rf .build/
  140. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  141. # LCD_I2C_PANELOLU2
  142. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  143. - sed -i 's/\/\/#define LCD_I2C_PANELOLU2/#define LCD_I2C_PANELOLU2/g' Marlin/Configuration.h
  144. - rm -rf .build/
  145. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  146. # LCD_I2C_VIKI
  147. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  148. - sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
  149. - rm -rf .build/
  150. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  151. # Enable filament sensor
  152. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  153. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  154. - rm -rf .build/
  155. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  156. # Enable filament sensor with LCD display
  157. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  158. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  159. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  160. - sed -i 's/\/\/#define FILAMENT_LCD_DISPLAY/#define FILAMENT_LCD_DISPLAY/g' Marlin/Configuration.h
  161. - rm -rf .build/
  162. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  163. # Enable COREXY
  164. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  165. - sed -i 's/\/\/#define COREXY/#define COREXY/g' Marlin/Configuration.h
  166. - rm -rf .build/
  167. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  168. # Enable COREXZ
  169. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  170. - sed -i 's/\/\/#define COREXZ/#define COREXZ/g' Marlin/Configuration.h
  171. - rm -rf .build/
  172. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  173. # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
  174. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  175. - sed -i 's/\/\/#define Z_DUAL_STEPPER_DRIVERS/#define Z_DUAL_STEPPER_DRIVERS/g' Marlin/Configuration_adv.h
  176. - sed -i 's/\ \ \/\/\ \#define Z_DUAL_ENDSTOPS/#define Z_DUAL_ENDSTOPS/g' Marlin/Configuration_adv.h
  177. - sed -i 's/#define X_MAX_PIN 2/#define X_MAX_PIN -1/g' Marlin/pins_RAMPS_13.h
  178. - sed -i 's/\ \ \ \ \#define Z2_MAX_PIN 36/#define Z2_MAX_PIN 2/g' Marlin/Configuration_adv.h
  179. - rm -rf .build/
  180. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  181. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  182. - cp Marlin/Configuration_adv.h.backup Marlin/Configuration_adv.h
  183. - cp Marlin/pins_RAMPS_13.h.backup Marlin/pins_RAMPS_13.h
  184. ######## Example Configurations ##############
  185. # Delta Config (generic)
  186. - cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
  187. - rm -rf .build/
  188. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  189. # Delta Config (Mini Kossel)
  190. - cp Marlin/example_configurations/delta/kossel_mini/Configuration* Marlin/
  191. - rm -rf .build/
  192. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  193. # Makibox Config need to check board type for Teensy++ 2.0
  194. #- cp Marlin/example_configurations/makibox/Configuration* Marlin/
  195. #- rm -rf .build/
  196. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  197. # SCARA Config
  198. - cp Marlin/example_configurations/SCARA/Configuration* Marlin/
  199. - rm -rf .build/
  200. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  201. # tvrrug Config need to check board type for sanguino atmega644p
  202. #- cp Marlin/example_configurations/tvrrug/Round2/Configuration* Marlin/
  203. #- rm -rf .build/
  204. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  205. ######## Board Types #############