2015-01-03 05:43:40 -06:00
|
|
|
---
|
|
|
|
language: c
|
|
|
|
|
|
|
|
before_install:
|
2015-06-08 07:44:49 -05: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 08:01:40 -05:00
|
|
|
- mkdir ~/bin
|
2015-01-03 05:43:40 -06:00
|
|
|
install:
|
2015-06-13 20:16:19 -05: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 08:01:40 -05:00
|
|
|
- mv LinuxAddons/bin/* ~/bin/
|
2015-06-13 20:16:19 -05: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 05:43:40 -06:00
|
|
|
before_script:
|
2015-06-13 20:16:19 -05: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 05:43:40 -06:00
|
|
|
# change back to home directory for compiling
|
2015-01-03 10:50:05 -06:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2015-01-03 05:43:40 -06:00
|
|
|
script:
|
2015-01-03 13:29:04 -06:00
|
|
|
# build default config
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
|
|
|
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS_14.h
|
2015-01-03 13:29:04 -06:00
|
|
|
- cp Marlin/Configuration.h Marlin/Configuration.h.backup
|
|
|
|
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
|
2016-02-29 01:23:17 -06:00
|
|
|
- cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup
|
2015-06-29 05:26:24 -05:00
|
|
|
# add sensor for bed
|
2016-03-22 09:13:38 -05:00
|
|
|
- opt_set TEMP_SENSOR_BED 1
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# change extruder numbers from 1 to 2
|
2016-03-22 09:13:38 -05:00
|
|
|
- opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
|
|
|
|
- opt_set EXTRUDERS 2
|
|
|
|
- opt_set TEMP_SENSOR_1 1
|
2015-06-29 05:26:24 -05:00
|
|
|
#- cat Marlin/Configuration.h
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-01-03 16:46:15 -06:00
|
|
|
# change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
|
2016-03-22 09:13:38 -05:00
|
|
|
- opt_set MOTHERBOARD BOARD_RUMBA
|
|
|
|
- opt_set EXTRUDERS 3
|
|
|
|
- opt_set TEMP_SENSOR_2 1
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# enable PIDTEMPBED
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable PIDTEMPBED
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# enable AUTO_BED_LEVELING
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable ENABLE_AUTO_BED_LEVELING
|
|
|
|
- build_marlin
|
2015-07-31 04:12:58 -05:00
|
|
|
# enable AUTO_BED_LEVELING with servos
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable ENABLE_AUTO_BED_LEVELING NUM_SERVOS Z_ENDSTOP_SERVO_NR SERVO_ENDSTOP_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# enable EEPROM_SETTINGS & EEPROM_CHITCHAT
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
### LCDS ###
|
|
|
|
# ULTIMAKERCONTROLLER
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable ULTIMAKERCONTROLLER
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# MAKRPANEL
|
2015-01-03 16:46:15 -06:00
|
|
|
# Needs to use melzi and sanguino hardware
|
2016-03-22 09:13:38 -05:00
|
|
|
#- restore_configs
|
|
|
|
#- opt_enable MAKRPANEL
|
|
|
|
#- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# REPRAP_DISCOUNT_SMART_CONTROLLER
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
|
|
|
# G3D_PANEL
|
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable G3D_PANEL SDSUPPORT
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
|
|
- build_marlin
|
|
|
|
# REPRAPWORLD_KEYPAD
|
2015-01-03 16:46:15 -06:00
|
|
|
# Cant find configuration details to get it to compile
|
2016-03-22 09:13:38 -05:00
|
|
|
#- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
#- opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
|
2016-03-22 09:13:38 -05:00
|
|
|
#- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# RA_CONTROL_PANEL
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable RA_CONTROL_PANEL
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
### I2C PANELS ###
|
|
|
|
# LCD_I2C_SAINSMART_YWROBOT
|
2015-01-03 16:46:15 -06:00
|
|
|
# Failing at the moment needs different library
|
2016-03-22 09:13:38 -05:00
|
|
|
#- restore_configs
|
|
|
|
#- opt_enable LCD_I2C_SAINSMART_YWROBOT
|
|
|
|
#- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# LCD_I2C_PANELOLU2
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCD_I2C_PANELOLU2
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# LCD_I2C_VIKI
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCD_I2C_VIKI
|
|
|
|
- build_marlin
|
2016-03-19 17:25:51 -05:00
|
|
|
# LCM1602
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable LCM1602
|
|
|
|
- build_marlin
|
2016-03-20 04:40:26 -05:00
|
|
|
# Enable FILAMENTCHANGEENABLE
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable FILAMENTCHANGEENABLE
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# Enable filament sensor
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable FILAMENT_SENSOR
|
|
|
|
- build_marlin
|
|
|
|
# Enable filament sensor with LCD display
|
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable ULTIMAKERCONTROLLER FILAMENT_SENSOR FILAMENT_LCD_DISPLAY
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-07-23 10:59:09 -05:00
|
|
|
# Enable COREXY
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable COREXY
|
|
|
|
- build_marlin
|
2015-07-23 10:59:09 -05:00
|
|
|
# Enable COREXZ
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
|
|
|
- opt_enable COREXZ
|
|
|
|
- build_marlin
|
2015-08-10 17:03:31 -05:00
|
|
|
# Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
|
2016-03-22 09:13:38 -05:00
|
|
|
- restore_configs
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable_adv Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
|
2016-03-22 09:13:38 -05:00
|
|
|
- pins_set RAMPS_14 X_MAX_PIN -1
|
|
|
|
- opt_set_adv Z2_MAX_PIN 2
|
|
|
|
- build_marlin
|
|
|
|
- restore_configs
|
2015-01-03 13:29:04 -06:00
|
|
|
######## Example Configurations ##############
|
2015-03-07 12:53:23 -06:00
|
|
|
# Delta Config (generic)
|
2016-03-22 09:13:38 -05:00
|
|
|
- use_example_configs delta/generic
|
|
|
|
- build_marlin
|
2015-11-01 14:49:40 -06:00
|
|
|
# Delta Config (generic) + ABL + ALLEN_KEY
|
2016-03-22 09:13:38 -05:00
|
|
|
- use_example_configs delta/generic
|
|
|
|
- opt_disable DISABLE_MIN_ENDSTOPS
|
2016-03-23 00:32:42 -05:00
|
|
|
- opt_enable AUTO_BED_LEVELING_FEATURE Z_PROBE_ALLEN_KEY
|
2016-03-22 09:13:38 -05:00
|
|
|
- build_marlin
|
2015-03-07 12:53:23 -06:00
|
|
|
# Delta Config (Mini Kossel)
|
2016-03-22 09:13:38 -05:00
|
|
|
- use_example_configs delta/kossel_mini
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# Makibox Config need to check board type for Teensy++ 2.0
|
2016-03-22 09:13:38 -05:00
|
|
|
#- use_example_configs makibox
|
|
|
|
#- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# SCARA Config
|
2016-03-22 09:13:38 -05:00
|
|
|
- use_example_configs SCARA
|
|
|
|
- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
# tvrrug Config need to check board type for sanguino atmega644p
|
2016-03-22 09:13:38 -05:00
|
|
|
#- use_example_configs tvrrug/Round2
|
|
|
|
#- build_marlin
|
2015-01-03 13:29:04 -06:00
|
|
|
######## Board Types #############
|