2015-01-03 11:43:40 +00:00
|
|
|
---
|
|
|
|
language: c
|
|
|
|
|
|
|
|
before_install:
|
2015-06-08 12:44:49 +00:00
|
|
|
# Travis runs a detached head. We need to find the current branch
|
|
|
|
- git checkout `git branch --contains HEAD | grep -v '*'`
|
|
|
|
# Also tags for the root(s) of the minor version(s)
|
|
|
|
- git fetch origin --tags
|
2015-06-02 13:01:40 +00:00
|
|
|
- mkdir ~/bin
|
2015-01-03 11:43:40 +00:00
|
|
|
install:
|
2015-06-14 01:16:19 +00:00
|
|
|
# Install arduino 1.6.4
|
|
|
|
- wget http://downloads-02.arduino.cc/arduino-1.6.4-linux64.tar.xz
|
|
|
|
- tar Jxf arduino-1.6.4-linux64.tar.xz
|
|
|
|
- sudo mv arduino-1.6.4 /usr/local/share/arduino
|
|
|
|
- ln -s /usr/local/share/arduino/arduino ~/bin/arduino
|
|
|
|
# Our custom build commands
|
2015-06-02 13:01:40 +00:00
|
|
|
- mv LinuxAddons/bin/* ~/bin/
|
2015-06-14 01:16:19 +00:00
|
|
|
- ls -la ~/bin
|
|
|
|
# install our platform
|
|
|
|
- cp -r ArduinoAddons/Arduino_1.6.x/hardware/* /usr/local/share/arduino/hardware
|
|
|
|
# copy libraries to arduino dir, as conditional includes do not work in .ino files
|
|
|
|
- cp -r /usr/local/share/arduino/hardware/marlin/avr/libraries/* /usr/local/share/arduino/libraries/
|
|
|
|
- cp -r ArduinoAddons/Arduino_1.6.x/libraries/* /usr/local/share/arduino/libraries/
|
|
|
|
# add LiquidCrystal_I2C & LiquidTWI2 libraries
|
|
|
|
- git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
|
|
|
|
- mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
|
|
|
|
- git clone https://github.com/lincomatic/LiquidTWI2.git
|
|
|
|
- mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
|
2015-01-03 11:43:40 +00:00
|
|
|
before_script:
|
2015-06-14 01:16:19 +00:00
|
|
|
# arduino requires an X server even with command line
|
|
|
|
# https://github.com/arduino/Arduino/issues/1981
|
|
|
|
- Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
|
2015-01-03 11:43:40 +00:00
|
|
|
# change back to home directory for compiling
|
2015-01-03 16:50:05 +00:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2015-01-03 11:43:40 +00:00
|
|
|
script:
|
2015-01-03 19:29:04 +00:00
|
|
|
# build default config
|
2016-03-22 14:13:38 +00:00
|
|
|
- build_marlin
|
|
|
|
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS_14.h
|
2015-01-03 19:29:04 +00:00
|
|
|
- cp Marlin/Configuration.h Marlin/Configuration.h.backup
|
|
|
|
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
|
2016-02-29 07:23:17 +00:00
|
|
|
- cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup
|
2015-06-29 10:26:24 +00:00
|
|
|
# add sensor for bed
|
2016-03-22 14:13:38 +00:00
|
|
|
- opt_set TEMP_SENSOR_BED 1
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# change extruder numbers from 1 to 2
|
2016-03-22 14:13:38 +00:00
|
|
|
- opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
|
|
|
|
- opt_set EXTRUDERS 2
|
|
|
|
- opt_set TEMP_SENSOR_1 1
|
2015-06-29 10:26:24 +00:00
|
|
|
#- cat Marlin/Configuration.h
|
2016-03-22 14:13:38 +00:00
|
|
|
- build_marlin
|
2015-01-03 22:46:15 +00:00
|
|
|
# change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
|
2016-03-22 14:13:38 +00:00
|
|
|
- opt_set MOTHERBOARD BOARD_RUMBA
|
|
|
|
- opt_set EXTRUDERS 3
|
|
|
|
- opt_set TEMP_SENSOR_2 1
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# enable PIDTEMPBED
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable PIDTEMPBED
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# enable AUTO_BED_LEVELING
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable ENABLE_AUTO_BED_LEVELING
|
|
|
|
- build_marlin
|
2015-07-31 09:12:58 +00:00
|
|
|
# enable AUTO_BED_LEVELING with servos
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable ENABLE_AUTO_BED_LEVELING
|
|
|
|
- opt_enable NUM_SERVOS
|
|
|
|
- opt_enable Z_ENDSTOP_SERVO_NR
|
|
|
|
- opt_enable SERVO_ENDSTOP_ANGLES
|
|
|
|
- opt_enable DEACTIVATE_SERVOS_AFTER_MOVE
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# enable EEPROM_SETTINGS & EEPROM_CHITCHAT
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable EEPROM_SETTINGS
|
|
|
|
- opt_enable EEPROM_CHITCHAT
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
### LCDS ###
|
|
|
|
# ULTIMAKERCONTROLLER
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable ULTIMAKERCONTROLLER
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# MAKRPANEL
|
2015-01-03 22:46:15 +00:00
|
|
|
# Needs to use melzi and sanguino hardware
|
2016-03-22 14:13:38 +00:00
|
|
|
#- restore_configs
|
|
|
|
#- opt_enable MAKRPANEL
|
|
|
|
#- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# REPRAP_DISCOUNT_SMART_CONTROLLER
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER
|
|
|
|
- opt_enable SDSUPPORT
|
|
|
|
- build_marlin
|
|
|
|
# G3D_PANEL
|
|
|
|
- restore_configs
|
|
|
|
- opt_enable G3D_PANEL
|
|
|
|
- opt_enable SDSUPPORT
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
|
|
- build_marlin
|
|
|
|
# REPRAPWORLD_KEYPAD
|
2015-01-03 22:46:15 +00:00
|
|
|
# Cant find configuration details to get it to compile
|
2016-03-22 14:13:38 +00:00
|
|
|
#- restore_configs
|
|
|
|
#- opt_enable ULTRA_LCD
|
|
|
|
#- opt_enable REPRAPWORLD_KEYPAD
|
|
|
|
#- opt_enable REPRAPWORLD_KEYPAD_MOVE_STEP
|
|
|
|
#- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# RA_CONTROL_PANEL
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable RA_CONTROL_PANEL
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
### I2C PANELS ###
|
|
|
|
# LCD_I2C_SAINSMART_YWROBOT
|
2015-01-03 22:46:15 +00:00
|
|
|
# Failing at the moment needs different library
|
2016-03-22 14:13:38 +00:00
|
|
|
#- restore_configs
|
|
|
|
#- opt_enable LCD_I2C_SAINSMART_YWROBOT
|
|
|
|
#- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# LCD_I2C_PANELOLU2
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCD_I2C_PANELOLU2
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# LCD_I2C_VIKI
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCD_I2C_VIKI
|
|
|
|
- build_marlin
|
2016-03-19 22:25:51 +00:00
|
|
|
# LCM1602
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCM1602
|
|
|
|
- build_marlin
|
2016-03-20 09:40:26 +00:00
|
|
|
# Enable FILAMENTCHANGEENABLE
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable FILAMENTCHANGEENABLE
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# Enable filament sensor
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable FILAMENT_SENSOR
|
|
|
|
- build_marlin
|
|
|
|
# Enable filament sensor with LCD display
|
|
|
|
- restore_configs
|
|
|
|
- opt_enable ULTIMAKERCONTROLLER
|
|
|
|
- opt_enable FILAMENT_SENSOR
|
|
|
|
- opt_enable FILAMENT_LCD_DISPLAY
|
|
|
|
- build_marlin
|
2015-07-23 15:59:09 +00:00
|
|
|
# Enable COREXY
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable COREXY
|
|
|
|
- build_marlin
|
2015-07-23 15:59:09 +00:00
|
|
|
# Enable COREXZ
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable COREXZ
|
|
|
|
- build_marlin
|
2015-08-10 22:03:31 +00:00
|
|
|
# Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
|
2016-03-22 14:13:38 +00:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable_adv Z_DUAL_STEPPER_DRIVERS
|
|
|
|
- opt_enable_adv Z_DUAL_ENDSTOPS
|
|
|
|
- pins_set RAMPS_14 X_MAX_PIN -1
|
|
|
|
- opt_set_adv Z2_MAX_PIN 2
|
|
|
|
- build_marlin
|
|
|
|
- restore_configs
|
2015-01-03 19:29:04 +00:00
|
|
|
######## Example Configurations ##############
|
2015-03-07 18:53:23 +00:00
|
|
|
# Delta Config (generic)
|
2016-03-22 14:13:38 +00:00
|
|
|
- use_example_configs delta/generic
|
|
|
|
- build_marlin
|
2015-11-01 20:49:40 +00:00
|
|
|
# Delta Config (generic) + ABL + ALLEN_KEY
|
2016-03-22 14:13:38 +00:00
|
|
|
- use_example_configs delta/generic
|
|
|
|
- opt_disable DISABLE_MIN_ENDSTOPS
|
|
|
|
- opt_enable AUTO_BED_LEVELING_FEATURE
|
|
|
|
- opt_enable Z_PROBE_ALLEN_KEY
|
|
|
|
- build_marlin
|
2015-03-07 18:53:23 +00:00
|
|
|
# Delta Config (Mini Kossel)
|
2016-03-22 14:13:38 +00:00
|
|
|
- use_example_configs delta/kossel_mini
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# Makibox Config need to check board type for Teensy++ 2.0
|
2016-03-22 14:13:38 +00:00
|
|
|
#- use_example_configs makibox
|
|
|
|
#- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# SCARA Config
|
2016-03-22 14:13:38 +00:00
|
|
|
- use_example_configs SCARA
|
|
|
|
- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
# tvrrug Config need to check board type for sanguino atmega644p
|
2016-03-22 14:13:38 +00:00
|
|
|
#- use_example_configs tvrrug/Round2
|
|
|
|
#- build_marlin
|
2015-01-03 19:29:04 +00:00
|
|
|
######## Board Types #############
|