My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

.travis.yml 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. ---
  2. language: c
  3. before_install:
  4. - pwd
  5. - wget https://bootstrap.pypa.io/get-pip.py
  6. - wget https://bintray.com/artifact/download/olikraus/u8glib/u8glib_arduino_v1.17.zip
  7. install:
  8. - sudo python get-pip.py
  9. - sudo pip install ino
  10. # add ppa for newer version of Arduino than available in ubuntu 12.04
  11. - sudo add-apt-repository ppa:michael-gruz/elektronik -y
  12. - sudo apt-get update -q
  13. - sudo apt-get install arduino
  14. before_script:
  15. # copy TMC and L6470 libraries to arduino dir, as conditional includes do not work in .ino files
  16. - sudo cp -r ArduinoAddons/Arduino_1.x.x/libraries/ /usr/share/arduino
  17. # add U8glib, LiquidCrystal_I2C & LiquidTWI2 libraries
  18. - sudo unzip u8glib_arduino_v1.17.zip -d /usr/share/arduino/libraries/
  19. - cd /usr/share/arduino/libraries/
  20. - sudo git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
  21. - ls -la
  22. - ls -la LiquidCrystal_I2C/
  23. - sudo git clone https://github.com/lincomatic/LiquidTWI2.git
  24. # remove Robot_Control library to stop compile error!
  25. - sudo rm -rf /usr/share/arduino/libraries/Robot_Control
  26. # change back to home directory for compiling
  27. - cd $TRAVIS_BUILD_DIR
  28. # ino needs files in src directory
  29. - ln -s Marlin src
  30. # remove Marlin.pde as it confuses ino after it finds Marlin.ino
  31. - rm Marlin/Marlin.pde
  32. script:
  33. # build default config
  34. - ino build -m mega2560
  35. # backup configuration.h
  36. - cp Marlin/Configuration.h Marlin/Configuration.h.backup
  37. - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
  38. # change extruder numbers from 1 to 2
  39. # commented out for the moment fails build but compiles fine in Arduino
  40. #- sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
  41. #- rm -rf .build/
  42. #- ino build -m mega2560
  43. # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
  44. #- sed -i 's/#define MOTHERBOARD BOARD_ULTIMAKER/#define MOTHERBOARD BOARD_AZTEEG_X3_PRO/g' Marlin/Configuration.h
  45. #- sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
  46. #- rm -rf .build/
  47. #- ino build -m mega2560
  48. # enable PIDTEMPBED
  49. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  50. - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h
  51. - rm -rf .build/
  52. - ino build -m mega2560
  53. # enable THERMAL RUNAWAY PROTECTION for extruders & bed
  54. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  55. - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_PERIOD/#define THERMAL_RUNAWAY_PROTECTION_PERIOD/g' Marlin/Configuration.h
  56. - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS/#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS/g' Marlin/Configuration.h
  57. - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD/#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD/g' Marlin/Configuration.h
  58. - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS/#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS/g' Marlin/Configuration.h
  59. - rm -rf .build/
  60. - ino build -m mega2560
  61. # enable AUTO_BED_LEVELING
  62. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  63. - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
  64. - rm -rf .build/
  65. - ino build -m mega2560
  66. # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
  67. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  68. - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h
  69. - sed -i 's/\/\/#define EEPROM_CHITCHAT/#define EEPROM_CHITCHAT/g' Marlin/Configuration.h
  70. - rm -rf .build/
  71. - ino build -m mega2560
  72. ### LCDS ###
  73. # ULTIMAKERCONTROLLER
  74. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  75. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  76. - rm -rf .build/
  77. - ino build -m mega2560
  78. # MAKRPANEL
  79. # Needs to use melzi and sanguino hardware
  80. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  81. #- sed -i 's/\/\/#define MAKRPANEL/#define MAKRPANEL/g' Marlin/Configuration.h
  82. #- rm -rf .build/
  83. #- ino build -m mega2560
  84. # REPRAP_DISCOUNT_SMART_CONTROLLER
  85. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  86. - sed -i 's/\/\/#define REPRAP_DISCOUNT_SMART_CONTROLLER/#define REPRAP_DISCOUNT_SMART_CONTROLLER/g' Marlin/Configuration.h
  87. - rm -rf .build/
  88. - ino build -m mega2560
  89. # G3D_PANE
  90. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  91. - sed -i 's/\/\/#define G3D_PANEL/#define G3D_PANEL/g' Marlin/Configuration.h
  92. - rm -rf .build/
  93. - ino build -m mega2560
  94. # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  95. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  96. - sed -i 's/\/\/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/g' Marlin/Configuration.h
  97. - rm -rf .build/
  98. - ino build -m mega2560
  99. # REPRAPWORLD_KEYPAD
  100. # Cant find configuration details to get it to compile
  101. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  102. #- sed -i 's/\/\/#define ULTRA_LCD/#define ULTRA_LCD/g' Marlin/Configuration.h
  103. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD/#define REPRAPWORLD_KEYPAD/g' Marlin/Configuration.h
  104. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/g' Marlin/Configuration.h
  105. #- rm -rf .build/
  106. #- ino build -m mega2560
  107. # RA_CONTROL_PANEL
  108. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  109. - sed -i 's/\/\/#define RA_CONTROL_PANEL/#define RA_CONTROL_PANEL/g' Marlin/Configuration.h
  110. - rm -rf .build/
  111. - ino build -m mega2560
  112. ### I2C PANELS ###
  113. # LCD_I2C_SAINSMART_YWROBOT
  114. # Failing at the moment needs different library
  115. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  116. #- sed -i 's/\/\/#define LCD_I2C_SAINSMART_YWROBOT/#define LCD_I2C_SAINSMART_YWROBOT/g' Marlin/Configuration.h
  117. #- rm -rf .build/
  118. #- ino build -m mega2560
  119. # LCD_I2C_PANELOLU2
  120. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  121. - sed -i 's/\/\/#define LCD_I2C_PANELOLU2/#define LCD_I2C_PANELOLU2/g' Marlin/Configuration.h
  122. - rm -rf .build/
  123. - ino build -m mega2560
  124. # LCD_I2C_VIKI
  125. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  126. - sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
  127. - rm -rf .build/
  128. - ino build -m mega2560
  129. # Enable filament sensor
  130. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  131. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  132. - rm -rf .build/
  133. - ino build -m mega2560
  134. # Enable filament sensor with LCD display
  135. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  136. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  137. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  138. - sed -i 's/\/\/#define FILAMENT_LCD_DISPLAY/#define FILAMENT_LCD_DISPLAY/g' Marlin/Configuration.h
  139. - rm -rf .build/
  140. - ino build -m mega2560
  141. ######## Example Configurations ##############
  142. # Delta Config (generic)
  143. - cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
  144. - rm -rf .build/
  145. - ino build -m mega2560
  146. # Delta Config (Mini Kossel)
  147. - cp Marlin/example_configurations/delta/kossel_mini/Configuration* Marlin/
  148. - rm -rf .build/
  149. - ino build -m mega2560
  150. # Makibox Config need to check board type for Teensy++ 2.0
  151. #- cp Marlin/example_configurations/makibox/Configuration* Marlin/
  152. #- rm -rf .build/
  153. #- ino build -m mega2560
  154. # SCARA Config
  155. - cp Marlin/example_configurations/SCARA/Configuration* Marlin/
  156. - rm -rf .build/
  157. - ino build -m mega2560
  158. # tvrrug Config need to check board type for sanguino atmega644p
  159. #- cp Marlin/example_configurations/tvrrug/Round2/Configuration* Marlin/
  160. #- rm -rf .build/
  161. #- ino build -m mega2560
  162. ######## Board Types #############
  163. - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_DUEMILANOVE_328P/g' Marlin/Configuration.h
  164. - rm -rf .build/
  165. - ino build -m atmega328