My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

.travis.yml 9.2KB

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