瀏覽代碼

Merge pull request #3998 from jbrazio/bugfix/better-regex

Improves travis buildroot regexp
Scott Lahteine 8 年之前
父節點
當前提交
ddbb05fd8d

+ 69
- 63
.travis.yml 查看文件

@@ -17,10 +17,10 @@ before_install:
17 17
   #
18 18
 install:
19 19
   #
20
-  # Install arduino 1.6.8
21
-  - wget http://downloads-02.arduino.cc/arduino-1.6.8-linux64.tar.xz
22
-  - tar xf arduino-1.6.8-linux64.tar.xz
23
-  - sudo mv arduino-1.6.8 /usr/local/share/arduino
20
+  # Install arduino 1.6.9
21
+  - wget http://downloads-02.arduino.cc/arduino-1.6.9-linux64.tar.xz
22
+  - tar xf arduino-1.6.9-linux64.tar.xz
23
+  - sudo mv arduino-1.6.9 /usr/local/share/arduino
24 24
   - ln -s /usr/local/share/arduino/arduino ${TRAVIS_BUILD_DIR}/buildroot/bin/arduino
25 25
   #
26 26
   # Install: LiquidCrystal_I2C library
@@ -105,7 +105,8 @@ script:
105 105
   - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR SERVO_ENDSTOP_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
106 106
   - build_marlin
107 107
   #
108
-  # Test EEPROM_SETTINGS, EEPROM_CHITCHAT, M100_FREE_MEMORY_WATCHER, INCH_MODE_SUPPORT, TEMPERATURE_UNITS_SUPPORT
108
+  # Test EEPROM_SETTINGS, EEPROM_CHITCHAT, M100_FREE_MEMORY_WATCHER,
109
+  #   INCH_MODE_SUPPORT, TEMPERATURE_UNITS_SUPPORT
109 110
   #
110 111
   - restore_configs
111 112
   - opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT M100_FREE_MEMORY_WATCHER INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT
@@ -130,7 +131,57 @@ script:
130 131
   - opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
131 132
   - build_marlin
132 133
   #
133
-  ### LCDS ###
134
+  # Enable FILAMENTCHANGEENABLE
135
+  #
136
+  - restore_configs
137
+  - opt_enable FILAMENTCHANGEENABLE ULTIMAKERCONTROLLER
138
+  - build_marlin
139
+  #
140
+  # Enable filament sensor
141
+  #
142
+  - restore_configs
143
+  - opt_enable FILAMENT_WIDTH_SENSOR
144
+  - build_marlin
145
+  #
146
+  # Enable filament sensor with LCD display
147
+  #
148
+  - opt_enable ULTIMAKERCONTROLLER FILAMENT_LCD_DISPLAY
149
+  - build_marlin
150
+  #
151
+  # Enable BEZIER_CURVE_SUPPORT
152
+  #
153
+  - restore_configs
154
+  - opt_enable_adv BEZIER_CURVE_SUPPORT
155
+  - build_marlin
156
+  #
157
+  # Enable COREXY
158
+  #
159
+  - restore_configs
160
+  - opt_enable COREXY
161
+  - build_marlin
162
+  #
163
+  # Enable COREXZ
164
+  #
165
+  - restore_configs
166
+  - opt_enable COREXZ
167
+  - build_marlin
168
+  #
169
+  # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
170
+  #
171
+  - restore_configs
172
+  - opt_enable_adv Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
173
+  - pins_set RAMPS_14 X_MAX_PIN -1
174
+  - opt_set_adv Z2_MAX_PIN 2
175
+  - build_marlin
176
+  #
177
+  # Test PRINTCOUNTER
178
+  #
179
+  - restore_configs
180
+  - opt_enable PRINTCOUNTER
181
+  - build_marlin
182
+  #
183
+  #
184
+  ######## STANDARD LCD/PANELS ##############
134 185
   #
135 186
   # ULTRA_LCD
136 187
   #
@@ -188,25 +239,29 @@ script:
188 239
   - opt_enable RA_CONTROL_PANEL
189 240
   - build_marlin
190 241
   #
191
-  ### I2C PANELS ###
242
+  ######## I2C LCD/PANELS ##############
243
+  #
244
+  # !!!ATTENTION!!!
245
+  # Most I2C configurations are failing at the moment because they require
246
+  # a different Liquid Crystal library "LiquidTWI2".
192 247
   #
193 248
   # LCD_I2C_SAINSMART_YWROBOT
194
-  # Failing at the moment needs different library
249
+  #
195 250
   #- restore_configs
196 251
   #- opt_enable LCD_I2C_SAINSMART_YWROBOT
197 252
   #- build_marlin
198 253
   #
199 254
   # LCD_I2C_PANELOLU2
200 255
   #
201
-  - restore_configs
202
-  - opt_enable LCD_I2C_PANELOLU2
203
-  - build_marlin
256
+  #- restore_configs
257
+  #- opt_enable LCD_I2C_PANELOLU2
258
+  #- build_marlin
204 259
   #
205 260
   # LCD_I2C_VIKI
206 261
   #
207
-  - restore_configs
208
-  - opt_enable LCD_I2C_VIKI
209
-  - build_marlin
262
+  #- restore_configs
263
+  #- opt_enable LCD_I2C_VIKI
264
+  #- build_marlin
210 265
   #
211 266
   # LCM1602
212 267
   #
@@ -214,55 +269,6 @@ script:
214 269
   - opt_enable LCM1602
215 270
   - build_marlin
216 271
   #
217
-  # Enable FILAMENTCHANGEENABLE
218
-  #
219
-  - restore_configs
220
-  - opt_enable FILAMENTCHANGEENABLE ULTIMAKERCONTROLLER
221
-  - build_marlin
222
-  #
223
-  # Enable filament sensor
224
-  #
225
-  - restore_configs
226
-  - opt_enable FILAMENT_WIDTH_SENSOR
227
-  - build_marlin
228
-  #
229
-  # Enable filament sensor with LCD display
230
-  #
231
-  - opt_enable ULTIMAKERCONTROLLER FILAMENT_LCD_DISPLAY
232
-  - build_marlin
233
-  #
234
-  # Enable BEZIER_CURVE_SUPPORT
235
-  #
236
-  - restore_configs
237
-  - opt_enable_adv BEZIER_CURVE_SUPPORT
238
-  - build_marlin
239
-  #
240
-  # Enable COREXY
241
-  #
242
-  - restore_configs
243
-  - opt_enable COREXY
244
-  - build_marlin
245
-  #
246
-  # Enable COREXZ
247
-  #
248
-  - restore_configs
249
-  - opt_enable COREXZ
250
-  - build_marlin
251
-  #
252
-  # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
253
-  #
254
-  - restore_configs
255
-  - opt_enable_adv Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
256
-  - pins_set RAMPS_14 X_MAX_PIN -1
257
-  - opt_set_adv Z2_MAX_PIN 2
258
-  - build_marlin
259
-  #
260
-  # Test PRINTCOUNTER
261
-  #
262
-  - restore_configs
263
-  - opt_enable PRINTCOUNTER
264
-  - build_marlin
265
-  #
266 272
   #
267 273
   ######## Example Configurations ##############
268 274
   #

+ 1
- 1
buildroot/bin/opt_disable 查看文件

@@ -1,5 +1,5 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 for opt in "$@" ; do
4
-  eval "sed -i 's/\(\/\/ *\)*\(\#define +$opt[^a-zA-Z0-9_]\)/\/\/\2/g' Marlin/Configuration.h"
4
+  eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration.h"
5 5
 done

+ 5
- 0
buildroot/bin/opt_disable_adv 查看文件

@@ -0,0 +1,5 @@
1
+#!/usr/bin/env bash
2
+
3
+for opt in "$@" ; do
4
+  eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration_adv.h"
5
+done

+ 1
- 1
buildroot/bin/opt_enable 查看文件

@@ -1,5 +1,5 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 for opt in "$@" ; do
4
-  eval "sed -i 's/\/\/ *\(#define +$opt[^a-zA-Z0-9_]\)/\1/g' Marlin/Configuration.h"
4
+  eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration.h"
5 5
 done

+ 1
- 1
buildroot/bin/opt_enable_adv 查看文件

@@ -1,5 +1,5 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 for opt in "$@" ; do
4
-  eval "sed -i 's/\/\/ *\(#define +$opt[^a-zA-Z0-9_]\)/\1/g' Marlin/Configuration_adv.h"
4
+  eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration_adv.h"
5 5
 done

+ 1
- 1
buildroot/bin/opt_set 查看文件

@@ -1,3 +1,3 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
-eval "sed -i 's/\(#define +$1 +\)[^ ]*$/\1 $2/g' Marlin/Configuration.h"
3
+eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h"

+ 1
- 1
buildroot/bin/opt_set_adv 查看文件

@@ -1,3 +1,3 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
-eval "sed -i 's/\(#define +$1 +\)[^ ]*$/\1 $2/g' Marlin/Configuration_adv.h"
3
+eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h"

+ 1
- 1
buildroot/bin/pins_set 查看文件

@@ -1,3 +1,3 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
-eval "sed -i 's/\(#define +$2 +\)[^ ]*$/\1 $3/g' Marlin/pins_$1.h"
3
+eval "sed -i 's/\(#define \b${2}\b\).*$/\1 ${3}/g' Marlin/pins_${1}.h"

Loading…
取消
儲存