2017-08-03 15:33:53 +00:00
|
|
|
dist: trusty
|
2017-08-03 16:20:03 +00:00
|
|
|
sudo: true
|
2017-08-03 14:06:59 +00:00
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
language: c
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2016-07-19 00:45:13 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
before_install:
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
2016-05-20 01:30:03 +00:00
|
|
|
# Fetch the tag information for the current branch
|
2015-06-08 12:44:49 +00:00
|
|
|
- git fetch origin --tags
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Publish the buildroot script folder
|
|
|
|
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
|
2017-08-03 15:33:53 +00:00
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Start fb X server
|
|
|
|
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
|
|
|
|
- sleep 3
|
|
|
|
- export DISPLAY=:1.0
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
install:
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
2018-01-10 11:22:21 +00:00
|
|
|
# Install arduino 1.8.5
|
|
|
|
- wget http://downloads-02.arduino.cc/arduino-1.8.5-linux64.tar.xz
|
|
|
|
- tar xf arduino-1.8.5-linux64.tar.xz
|
|
|
|
- sudo mv arduino-1.8.5 /usr/local/share/arduino
|
2016-05-10 00:45:42 +00:00
|
|
|
- ln -s /usr/local/share/arduino/arduino ${TRAVIS_BUILD_DIR}/buildroot/bin/arduino
|
|
|
|
#
|
|
|
|
# Install: LiquidCrystal_I2C library
|
2015-06-14 01:16:19 +00:00
|
|
|
- git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
|
|
|
|
- mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Install: LiquidTWI2 library
|
2015-06-14 01:16:19 +00:00
|
|
|
- git clone https://github.com/lincomatic/LiquidTWI2.git
|
2016-05-10 00:45:42 +00:00
|
|
|
- sudo mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
|
|
|
|
#
|
|
|
|
# Install: Monochrome Graphics Library for LCDs and OLEDs
|
2016-09-20 20:07:39 +00:00
|
|
|
- git clone https://github.com/olikraus/U8glib_Arduino.git
|
|
|
|
- sudo mv U8glib_Arduino /usr/local/share/arduino/libraries/U8glib
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Install: L6470 Stepper Motor Driver library
|
2016-11-07 22:17:25 +00:00
|
|
|
# - git clone https://github.com/ameyer/Arduino-L6470.git
|
|
|
|
# - sudo mv Arduino-L6470/L6470 /usr/local/share/arduino/libraries/L6470
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Install: TMC26X Stepper Motor Controller library
|
2016-11-07 22:17:25 +00:00
|
|
|
# - git clone https://github.com/trinamic/TMC26XStepper.git
|
|
|
|
# - sudo mv TMC26XStepper /usr/local/share/arduino/libraries/TMC26XStepper
|
|
|
|
#
|
|
|
|
# Install: TMC2130 Stepper Motor Controller library
|
2017-03-07 05:00:43 +00:00
|
|
|
- git clone https://github.com/teemuatlut/TMC2130Stepper.git
|
|
|
|
- sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2017-12-15 21:02:39 +00:00
|
|
|
# Install: TMC2208 Stepper Motor Controller library
|
|
|
|
- git clone https://github.com/teemuatlut/TMC2208Stepper.git
|
|
|
|
- sudo mv TMC2208Stepper /usr/local/share/arduino/libraries/TMC2208Stepper
|
|
|
|
#
|
2017-07-13 15:01:21 +00:00
|
|
|
# Install: Adafruit Neopixel library
|
|
|
|
- git clone https://github.com/adafruit/Adafruit_NeoPixel.git
|
|
|
|
- sudo mv Adafruit_NeoPixel /usr/local/share/arduino/libraries/Adafruit_NeoPixel
|
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
before_script:
|
2016-05-10 00:45:42 +00:00
|
|
|
#
|
|
|
|
# Change current working directory to the build dir
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2016-05-20 01:30:03 +00:00
|
|
|
# Generate custom version include
|
|
|
|
- generate_version_header_for_marlin ${TRAVIS_BUILD_DIR}/Marlin
|
|
|
|
- cat ${TRAVIS_BUILD_DIR}/Marlin/_Version.h
|
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
script:
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2016-07-30 10:10:30 +00:00
|
|
|
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS.h
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
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-07-30 10:10:30 +00:00
|
|
|
- cp Marlin/pins_RAMPS.h Marlin/pins_RAMPS.h.backup
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2018-09-09 02:17:02 +00:00
|
|
|
# Test Hangprinter only
|
2016-04-01 04:01:55 +00:00
|
|
|
#
|
2018-09-09 02:17:02 +00:00
|
|
|
- use_example_configs hangprinter
|
2016-04-01 04:01:55 +00:00
|
|
|
- build_marlin
|