My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.travis.yml 7.5KB

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