forked from MKFirmware/MK4duo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
104 lines (87 loc) · 4.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
dist: MagoKimbra
sudo: true
language: c
notifications:
email: false
before_install:
# Fetch the tag information for the current branch
- git fetch origin --tags
# Publish the buildroot script folder
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
# 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:
# Install arduino 1.8.9
- wget http://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz
- tar xf arduino-1.8.9-linux64.tar.xz
- sudo mv arduino-1.8.9 /usr/local/share/arduino
- ln -s /usr/local/share/arduino/arduino ${TRAVIS_BUILD_DIR}/buildroot/bin/arduino
- eval \"${TRAVIS_BUILD_DIR}/buildroot/bin/arduino\" --pref "compiler.warning_level=none" --save-prefs
# Install: LiquidCrystal_I2C library
- git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
- mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
# Install: LiquidTWI2 library
- git clone https://github.com/lincomatic/LiquidTWI2.git
- 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
# Install: TMCStepper Motor Controller library
- git clone https://github.com/teemuatlut/TMCStepper.git
- sudo mv TMCStepper /usr/local/share/arduino/libraries/TMCStepper
# 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:
# Change current working directory to the build dir
- cd ${TRAVIS_BUILD_DIR}
script:
# Backup Configuration pins_RAMPS.h
- cp MK4duo/Configuration_Basic.h MK4duo/Configuration_Basic.h.backup
- cp MK4duo/Configuration_Cartesian.h MK4duo/Configuration_Cartesian.h.backup
- cp MK4duo/Configuration_Core.h MK4duo/Configuration_Core.h.backup
- cp MK4duo/Configuration_Delta.h MK4duo/Configuration_Delta.h.backup
- cp MK4duo/Configuration_Feature.h MK4duo/Configuration_Feature.h.backup
- cp MK4duo/Configuration_LCD.h MK4duo/Configuration_LCD.h.backup
- cp MK4duo/Configuration_Motor_Driver.h MK4duo/Configuration_Motor_Driver.h.backup
- cp MK4duo/Configuration_Temperature.h MK4duo/Configuration_Temperature.h.backup
# Build with the default configurations
- build_mk4duo
# Test 2 extruders and heated bed on basic RAMPS 1.4
# Test SDSUPPORT EEPROM_SETTINGS
# Test Z_PROBE_FIX_MOUNTED Z_SAFE_HOMING
# Display REPRAP_DISCOUNT_SMART_CONTROLLER
- opt_set_basic MOTHERBOARD BOARD_RAMPS_13_HHB
- opt_set_basic EXTRUDERS 2
- opt_set_basic POWER_SUPPLY 1
- opt_set_temp TEMP_SENSOR_HE0 20
- opt_set_temp TEMP_SENSOR_HE1 1
- opt_set_temp TEMP_SENSOR_BED0 1
- opt_set_temp PIDTEMPBED true
- opt_enable_feature SDSUPPORT EEPROM_SETTINGS
- opt_enable_cartesian Z_PROBE_FIX_MOUNTED Z_SAFE_HOMING
- opt_enable_lcd REPRAP_DISCOUNT_SMART_CONTROLLER
- build_mk4duo
# Restore configuration
- restore_configs
# Test 1 extruders and heated bed on basic RAMPS 1.4
# Test SDSUPPORT EEPROM_SETTINGS
# Test a NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE
# Test a FILAMENT_RUNOUT_SENSOR
# Display REPRAP_DISCOUNT_SMART_CONTROLLER, sdsupport, eeprom
- opt_set_basic MOTHERBOARD BOARD_RAMPS_13_HFB
- opt_set_basic EXTRUDERS 1
- opt_set_basic POWER_SUPPLY 1
- opt_set_temp TEMP_SENSOR_HE0 20
- opt_set_temp TEMP_SENSOR_BED0 1
- opt_enable_feature SDSUPPORT EEPROM_SETTINGS
- opt_enable_feature NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE
- opt_enable_feature FILAMENT_RUNOUT_SENSOR
- opt_enable_lcd REPRAP_DISCOUNT_SMART_CONTROLLER
- pin_set FIL_RUNOUT_0_PIN ORIG_X_MAX_PIN
- build_mk4duo
# Restore configuration
- restore_configs