forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
232 lines (217 loc) · 6.74 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
dist: trusty
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 python and platformio
- sudo apt-get update && sudo apt-get install python python-pip
- sudo pip install -U platformio
#
install:
#
# Install arduino 1.6.10
- wget http://downloads.arduino.cc/arduino-1.6.10-linux64.tar.xz
- tar xf arduino-1.6.10-linux64.tar.xz
- sudo mv arduino-1.6.10 /usr/local/share/arduino
- ln -s /usr/local/share/arduino/arduino ${TRAVIS_BUILD_DIR}/buildroot/bin/arduino
#
# 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: L6470 Stepper Motor Driver library
# - git clone https://github.com/ameyer/Arduino-L6470.git
# - sudo mv Arduino-L6470/L6470 /usr/local/share/arduino/libraries/L6470
#
# Install: TMC26X Stepper Motor Controller library
# - 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
#
# 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}
#
# Generate custom version include
- generate_version_header_for_marlin ${TRAVIS_BUILD_DIR}/Marlin
- cat ${TRAVIS_BUILD_DIR}/Marlin/_Version.h
#
script:
#
# Backup Configuration.h, Configuration_adv.h, and pins_ROBOMB.h
#
- cp Marlin/Configuration.h Marlin/Configuration.h.backup
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
- cp Marlin/pins_ROBOMB.h Marlin/pins_ROBOMB.h.backup
#
# Build with the default R2 configurations
#
- build_marlin
#
# Test 2 extruders and heated bed on Robo Mainboard 2.1.4 and up
# Test a "Fix Mounted" Probe with Safe Homing, some arc options,
# linear bed leveling, M48, leveling debug, and firmware retraction.
#
- opt_set MOTHERBOARD BOARD_ROBOMB
- opt_set EXTRUDERS 2
- opt_set TEMP_SENSOR_0 1
- opt_set TEMP_SENSOR_1 1
- opt_set TEMP_SENSOR_BED 12
- opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING ARC_P_CIRCLES CNC_WORKSPACE_PLANES
- opt_enable Z_MIN_PROBE_REPEATABILITY_TEST
- opt_enable SDSUPPORT EEPROM_SETTINGS
- opt_enable FIX_MOUNTED_PROBE Z_SAFE_HOMING
- opt_enable_adv FWRETRACT MAX7219_DEBUG
- opt_set ABL_GRID_POINTS_X 4
- opt_set ABL_GRID_POINTS_Y 4
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_LINEAR
#
- restore_configs
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_UBL
#
- restore_configs
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_UBL DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of AUTO_BED_LEVELING_3POINT
#
- restore_configs
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of MESH_BED_LEVELING
#
- restore_configs
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable MESH_BED_LEVELING DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a build of C2
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_C2
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_LINEAR
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_C2
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_UBL
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_C2
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_UBL DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of AUTO_BED_LEVELING_3POINT
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_C2
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of AUTO_BED_LEVELING_MESH
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_C2
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable MESH_BED_LEVELING DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a build of R2_DUAL
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_R2_DUAL
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_LINEAR
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_R2_DUAL
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a build of AUTO_BED_LEVELING_UBL
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_R2_DUAL
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_UBL DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of AUTO_BED_LEVELING_3POINT
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_R2_DUAL
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test a probeless build of AUTO_BED_LEVELING_MESH
#
- restore_configs
- opt_set ROBO_BOARD_VERSION BOARD_VERSION_R2_DUAL
- opt_disable AUTO_BED_LEVELING_BILINEAR
- opt_enable MESH_BED_LEVELING DEBUG_LEVELING_FEATURE
- build_marlin
#
# Test if platformio will compile all targets
#
- restore_configs
- platformio run
deploy:
provider: releases
api_key: $DEPLOY_TOKEN
skip_cleanup: true
on:
tags: true
file_glob: true
file:
- "Marlin_Build/*/Marlin*.hex"