1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 23:07:42 +00:00
MarlinFirmware/.travis.yml

84 lines
2.9 KiB
YAML
Raw Normal View History

dist: trusty
sudo: true
#
language: c
#
notifications:
email: false
#
before_install:
2016-05-10 00:45:42 +00:00
#
# Fetch the tag information for the current branch
- git fetch origin --tags
2016-05-10 00:45:42 +00:00
#
# Publish the buildroot script folder
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
- 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
#
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
- 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
- git clone https://github.com/teemuatlut/TMC2130Stepper.git
- sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper
#
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
#
# Install: Adafruit Neopixel library
- git clone https://github.com/adafruit/Adafruit_NeoPixel.git
- sudo mv Adafruit_NeoPixel /usr/local/share/arduino/libraries/Adafruit_NeoPixel
#
before_script:
2016-05-10 00:45:42 +00:00
#
# Change current working directory to the build dir
- cd ${TRAVIS_BUILD_DIR}
#
# Generate custom version include
- generate_version_header_for_marlin ${TRAVIS_BUILD_DIR}/Marlin
- cat ${TRAVIS_BUILD_DIR}/Marlin/_Version.h
#
script:
#
2016-07-30 10:10:30 +00:00
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS.h
#
- 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
#
2018-09-09 02:17:02 +00:00
# Test Hangprinter only
#
2018-09-09 02:17:02 +00:00
- use_example_configs hangprinter
- build_marlin