My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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