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.

.travis.yml 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. before_script:
  29. # arduino requires an X server even with command line
  30. # https://github.com/arduino/Arduino/issues/1981
  31. - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
  32. # change back to home directory for compiling
  33. - cd $TRAVIS_BUILD_DIR
  34. script:
  35. # build default config
  36. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  37. # backup configuration.h
  38. - cp Marlin/Configuration.h Marlin/Configuration.h.backup
  39. - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
  40. # change extruder numbers from 1 to 2
  41. # commented out for the moment fails build but compiles fine in Arduino
  42. #- sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
  43. #- rm -rf .build/
  44. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  45. # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
  46. #- sed -i 's/#define MOTHERBOARD BOARD_ULTIMAKER/#define MOTHERBOARD BOARD_AZTEEG_X3_PRO/g' Marlin/Configuration.h
  47. #- sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
  48. #- rm -rf .build/
  49. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  50. # enable PIDTEMPBED
  51. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  52. - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h
  53. - rm -rf .build/
  54. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  55. # enable AUTO_BED_LEVELING
  56. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  57. - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
  58. - rm -rf .build/
  59. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  60. # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
  61. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  62. - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h
  63. - sed -i 's/\/\/#define EEPROM_CHITCHAT/#define EEPROM_CHITCHAT/g' Marlin/Configuration.h
  64. - rm -rf .build/
  65. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  66. ### LCDS ###
  67. # ULTIMAKERCONTROLLER
  68. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  69. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  70. - rm -rf .build/
  71. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  72. # MAKRPANEL
  73. # Needs to use melzi and sanguino hardware
  74. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  75. #- sed -i 's/\/\/#define MAKRPANEL/#define MAKRPANEL/g' Marlin/Configuration.h
  76. #- rm -rf .build/
  77. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  78. # REPRAP_DISCOUNT_SMART_CONTROLLER
  79. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  80. - sed -i 's/\/\/#define REPRAP_DISCOUNT_SMART_CONTROLLER/#define REPRAP_DISCOUNT_SMART_CONTROLLER/g' Marlin/Configuration.h
  81. - rm -rf .build/
  82. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  83. # G3D_PANE
  84. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  85. - sed -i 's/\/\/#define G3D_PANEL/#define G3D_PANEL/g' Marlin/Configuration.h
  86. - rm -rf .build/
  87. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  88. # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  89. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  90. - sed -i 's/\/\/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/g' Marlin/Configuration.h
  91. - rm -rf .build/
  92. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  93. # REPRAPWORLD_KEYPAD
  94. # Cant find configuration details to get it to compile
  95. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  96. #- sed -i 's/\/\/#define ULTRA_LCD/#define ULTRA_LCD/g' Marlin/Configuration.h
  97. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD/#define REPRAPWORLD_KEYPAD/g' Marlin/Configuration.h
  98. #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/g' Marlin/Configuration.h
  99. #- rm -rf .build/
  100. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  101. # RA_CONTROL_PANEL
  102. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  103. - sed -i 's/\/\/#define RA_CONTROL_PANEL/#define RA_CONTROL_PANEL/g' Marlin/Configuration.h
  104. - rm -rf .build/
  105. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  106. ### I2C PANELS ###
  107. # LCD_I2C_SAINSMART_YWROBOT
  108. # Failing at the moment needs different library
  109. #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
  110. #- sed -i 's/\/\/#define LCD_I2C_SAINSMART_YWROBOT/#define LCD_I2C_SAINSMART_YWROBOT/g' Marlin/Configuration.h
  111. #- rm -rf .build/
  112. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  113. # LCD_I2C_PANELOLU2
  114. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  115. - sed -i 's/\/\/#define LCD_I2C_PANELOLU2/#define LCD_I2C_PANELOLU2/g' Marlin/Configuration.h
  116. - rm -rf .build/
  117. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  118. # LCD_I2C_VIKI
  119. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  120. - sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
  121. - rm -rf .build/
  122. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  123. # Enable filament sensor
  124. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  125. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  126. - rm -rf .build/
  127. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  128. # Enable filament sensor with LCD display
  129. - cp Marlin/Configuration.h.backup Marlin/Configuration.h
  130. - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
  131. - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
  132. - sed -i 's/\/\/#define FILAMENT_LCD_DISPLAY/#define FILAMENT_LCD_DISPLAY/g' Marlin/Configuration.h
  133. - rm -rf .build/
  134. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  135. ######## Example Configurations ##############
  136. # Delta Config (generic)
  137. - cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
  138. - rm -rf .build/
  139. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  140. # Delta Config (Mini Kossel)
  141. - cp Marlin/example_configurations/delta/kossel_mini/Configuration* Marlin/
  142. - rm -rf .build/
  143. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  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. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  148. # SCARA Config
  149. - cp Marlin/example_configurations/SCARA/Configuration* Marlin/
  150. - rm -rf .build/
  151. - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  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. #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
  156. ######## Board Types #############