Browse Source

Improve Travis CI test

- Add shell scripts to help with managing configs
- Clean up .travis.yml file by using shell scripts
- Don’t download “astyle” – not needed and delays Travis results
Scott Lahteine 8 years ago
parent
commit
ff272c7b69

+ 108
- 150
.travis.yml View File

26
   - mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
26
   - mv LiquidCrystal_I2C/LiquidCrystal_I2C /usr/local/share/arduino/libraries/LiquidCrystal_I2C
27
   - git clone https://github.com/lincomatic/LiquidTWI2.git
27
   - git clone https://github.com/lincomatic/LiquidTWI2.git
28
   - mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
28
   - mv LiquidTWI2 /usr/local/share/arduino/libraries/LiquidTWI2
29
-  # Install astyle
30
-  - wget https://github.com/timonwong/astyle-mirror/archive/master.zip
31
-  - unzip master.zip
32
-  - cd astyle-mirror-master/build/gcc/
33
-  - make prefix=$HOME astyle install
34
 before_script:
29
 before_script:
35
   # arduino requires an X server even with command line
30
   # arduino requires an X server even with command line
36
   # https://github.com/arduino/Arduino/issues/1981
31
   # https://github.com/arduino/Arduino/issues/1981
37
   - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
32
   - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
38
   # change back to home directory for compiling
33
   # change back to home directory for compiling
39
   - cd $TRAVIS_BUILD_DIR
34
   - cd $TRAVIS_BUILD_DIR
40
-  # Check style
41
-  # ~/bin/astyle --recursive --options=.astylerc "Marlin/*.h" "Marlin/*.cpp"
42
 script:
35
 script:
43
-  # Abort on style errors
44
-  # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; exit -999; fi
45
-  # Relaxed Travis check
46
-  # if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; fi
47
   # build default config
36
   # build default config
48
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
49
-  # backup configuration.h
37
+  - build_marlin
38
+  # Backup Configuration.h, Configuration_adv.h, and pins_RAMPS_14.h
50
   - cp Marlin/Configuration.h Marlin/Configuration.h.backup
39
   - cp Marlin/Configuration.h Marlin/Configuration.h.backup
51
   - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
40
   - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
52
   - cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup
41
   - cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup
53
   # add sensor for bed
42
   # add sensor for bed
54
-  - sed -i 's/#define TEMP_SENSOR_BED 0/#define TEMP_SENSOR_BED 1/g' Marlin/Configuration.h
55
-  - rm -rf .build/
56
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
43
+  - opt_set TEMP_SENSOR_BED 1
44
+  - build_marlin
57
   # change extruder numbers from 1 to 2
45
   # change extruder numbers from 1 to 2
58
-  - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_14_EFB/#define MOTHERBOARD BOARD_RAMPS_14_EEB/g' Marlin/Configuration.h
59
-  - sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
60
-  - sed -i 's/#define TEMP_SENSOR_1 0/#define TEMP_SENSOR_1 1/g' Marlin/Configuration.h
46
+  - opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
47
+  - opt_set EXTRUDERS 2
48
+  - opt_set TEMP_SENSOR_1 1
61
   #- cat Marlin/Configuration.h
49
   #- cat Marlin/Configuration.h
62
-  - rm -rf .build/
63
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
50
+  - build_marlin
64
   # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h 
51
   # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h 
65
-  - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_14_EEB/#define MOTHERBOARD BOARD_RUMBA/g' Marlin/Configuration.h
66
-  - sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
67
-  - sed -i 's/#define TEMP_SENSOR_2 0/#define TEMP_SENSOR_2 1/g' Marlin/Configuration.h
68
-  - rm -rf .build/
69
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
52
+  - opt_set MOTHERBOARD BOARD_RUMBA
53
+  - opt_set EXTRUDERS 3
54
+  - opt_set TEMP_SENSOR_2 1
55
+  - build_marlin
70
   # enable PIDTEMPBED 
56
   # enable PIDTEMPBED 
71
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
72
-  - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h
73
-  - rm -rf .build/
74
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
57
+  - restore_configs
58
+  - opt_enable PIDTEMPBED
59
+  - build_marlin
75
   # enable AUTO_BED_LEVELING
60
   # enable AUTO_BED_LEVELING
76
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
77
-  - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
78
-  - rm -rf .build/
79
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
61
+  - restore_configs
62
+  - opt_enable ENABLE_AUTO_BED_LEVELING
63
+  - build_marlin
80
   # enable AUTO_BED_LEVELING with servos
64
   # enable AUTO_BED_LEVELING with servos
81
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
82
-  - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
83
-  - sed -i 's/\/\/#define NUM_SERVOS/#define NUM_SERVOS/g' Marlin/Configuration.h
84
-  - sed -i 's/\/\/#define Z_ENDSTOP_SERVO_NR/#define Z_ENDSTOP_SERVO_NR/g' Marlin/Configuration.h
85
-  - sed -i 's/\/\/#define SERVO_ENDSTOP_ANGLES/#define SERVO_ENDSTOP_ANGLES/g' Marlin/Configuration.h
86
-  - sed -i 's/\/\/#define DEACTIVATE_SERVOS_AFTER_MOVE/#define DEACTIVATE_SERVOS_AFTER_MOVE/g' Marlin/Configuration.h
87
-  - rm -rf .build/
88
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
65
+  - restore_configs
66
+  - opt_enable ENABLE_AUTO_BED_LEVELING
67
+  - opt_enable NUM_SERVOS
68
+  - opt_enable Z_ENDSTOP_SERVO_NR
69
+  - opt_enable SERVO_ENDSTOP_ANGLES
70
+  - opt_enable DEACTIVATE_SERVOS_AFTER_MOVE
71
+  - build_marlin
89
   # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
72
   # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
90
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
91
-  - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h
92
-  - sed -i 's/\/\/#define EEPROM_CHITCHAT/#define EEPROM_CHITCHAT/g' Marlin/Configuration.h
93
-  - rm -rf .build/
94
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
73
+  - restore_configs
74
+  - opt_enable EEPROM_SETTINGS
75
+  - opt_enable EEPROM_CHITCHAT
76
+  - build_marlin
95
   ### LCDS ###
77
   ### LCDS ###
96
   # ULTIMAKERCONTROLLER
78
   # ULTIMAKERCONTROLLER
97
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
98
-  - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
99
-  - rm -rf .build/
100
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
79
+  - restore_configs
80
+  - opt_enable ULTIMAKERCONTROLLER
81
+  - build_marlin
101
   # MAKRPANEL
82
   # MAKRPANEL
102
   # Needs to use melzi and sanguino hardware
83
   # Needs to use melzi and sanguino hardware
103
-  #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
104
-  #- sed -i 's/\/\/#define MAKRPANEL/#define MAKRPANEL/g' Marlin/Configuration.h
105
-  #- rm -rf .build/
106
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
84
+  #- restore_configs
85
+  #- opt_enable MAKRPANEL
86
+  #- build_marlin
107
   # REPRAP_DISCOUNT_SMART_CONTROLLER
87
   # REPRAP_DISCOUNT_SMART_CONTROLLER
108
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
109
-  - sed -i 's/\/\/#define SDSUPPORT/#define SDSUPPORT/g' Marlin/Configuration.h
110
-  - sed -i 's/\/\/#define REPRAP_DISCOUNT_SMART_CONTROLLER/#define REPRAP_DISCOUNT_SMART_CONTROLLER/g' Marlin/Configuration.h
111
-  - rm -rf .build/
112
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
113
-  # G3D_PANE
114
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
115
-  - sed -i 's/\/\/#define G3D_PANEL/#define G3D_PANEL/g' Marlin/Configuration.h
116
-  - rm -rf .build/
117
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
88
+  - restore_configs
89
+  - opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER
90
+  - opt_enable SDSUPPORT
91
+  - build_marlin
92
+  # G3D_PANEL
93
+  - restore_configs
94
+  - opt_enable G3D_PANEL
95
+  - opt_enable SDSUPPORT
96
+  - build_marlin
118
   # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
97
   # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
119
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
120
-  - sed -i 's/\/\/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/g' Marlin/Configuration.h
121
-  - rm -rf .build/
122
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
123
-  # REPRAPWORLD_KEYPAD 
98
+  - restore_configs
99
+  - opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
100
+  - build_marlin
101
+  # REPRAPWORLD_KEYPAD
124
   # Cant find configuration details to get it to compile
102
   # Cant find configuration details to get it to compile
125
-  #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
126
-  #- sed -i 's/\/\/#define ULTRA_LCD/#define ULTRA_LCD/g' Marlin/Configuration.h
127
-  #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD/#define REPRAPWORLD_KEYPAD/g' Marlin/Configuration.h
128
-  #- sed -i 's/\/\/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/g' Marlin/Configuration.h
129
-  #- rm -rf .build/
130
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
103
+  #- restore_configs
104
+  #- opt_enable ULTRA_LCD
105
+  #- opt_enable REPRAPWORLD_KEYPAD
106
+  #- opt_enable REPRAPWORLD_KEYPAD_MOVE_STEP
107
+  #- build_marlin
131
   # RA_CONTROL_PANEL
108
   # RA_CONTROL_PANEL
132
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
133
-  - sed -i 's/\/\/#define RA_CONTROL_PANEL/#define RA_CONTROL_PANEL/g' Marlin/Configuration.h
134
-  - rm -rf .build/
135
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
109
+  - restore_configs
110
+  - opt_enable RA_CONTROL_PANEL
111
+  - build_marlin
136
   ### I2C PANELS ###
112
   ### I2C PANELS ###
137
   # LCD_I2C_SAINSMART_YWROBOT
113
   # LCD_I2C_SAINSMART_YWROBOT
138
   # Failing at the moment needs different library 
114
   # Failing at the moment needs different library 
139
-  #- cp Marlin/Configuration.h.backup Marlin/Configuration.h
140
-  #- sed -i 's/\/\/#define LCD_I2C_SAINSMART_YWROBOT/#define LCD_I2C_SAINSMART_YWROBOT/g' Marlin/Configuration.h
141
-  #- rm -rf .build/
142
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
115
+  #- restore_configs
116
+  #- opt_enable LCD_I2C_SAINSMART_YWROBOT
117
+  #- build_marlin
143
   # LCD_I2C_PANELOLU2
118
   # LCD_I2C_PANELOLU2
144
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
145
-  - sed -i 's/\/\/#define LCD_I2C_PANELOLU2/#define LCD_I2C_PANELOLU2/g' Marlin/Configuration.h
146
-  - rm -rf .build/
147
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
119
+  - restore_configs
120
+  - opt_enable LCD_I2C_PANELOLU2
121
+  - build_marlin
148
   # LCD_I2C_VIKI
122
   # LCD_I2C_VIKI
149
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
150
-  - sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
151
-  - rm -rf .build/
152
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
123
+  - restore_configs
124
+  - opt_enable LCD_I2C_VIKI
125
+  - build_marlin
153
   # LCM1602
126
   # LCM1602
154
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
155
-  - sed -i 's/\/\/#define LCM1602/#define LCM1602/g' Marlin/Configuration.h
156
-  - rm -rf .build/
157
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
127
+  - restore_configs
128
+  - opt_enable LCM1602
129
+  - build_marlin
158
   # Enable FILAMENTCHANGEENABLE
130
   # Enable FILAMENTCHANGEENABLE
159
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
160
-  - sed -i 's/\/\/#define FILAMENTCHANGEENABLE/#define FILAMENTCHANGEENABLE/g' Marlin/Configuration.h
161
-  - rm -rf .build/
162
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
131
+  - restore_configs
132
+  - opt_enable FILAMENTCHANGEENABLE
133
+  - build_marlin
163
   # Enable filament sensor
134
   # Enable filament sensor
164
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
165
-  - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
166
-  - rm -rf .build/
167
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
168
-   # Enable filament sensor with LCD display
169
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
170
-  - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
171
-  - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
172
-  - sed -i 's/\/\/#define FILAMENT_LCD_DISPLAY/#define FILAMENT_LCD_DISPLAY/g' Marlin/Configuration.h
173
-  - rm -rf .build/
174
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
135
+  - restore_configs
136
+  - opt_enable FILAMENT_SENSOR
137
+  - build_marlin
138
+  # Enable filament sensor with LCD display
139
+  - restore_configs
140
+  - opt_enable ULTIMAKERCONTROLLER
141
+  - opt_enable FILAMENT_SENSOR
142
+  - opt_enable FILAMENT_LCD_DISPLAY
143
+  - build_marlin
175
   # Enable COREXY
144
   # Enable COREXY
176
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
177
-  - sed -i 's/\/\/#define COREXY/#define COREXY/g' Marlin/Configuration.h
178
-  - rm -rf .build/
179
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
145
+  - restore_configs
146
+  - opt_enable COREXY
147
+  - build_marlin
180
   # Enable COREXZ
148
   # Enable COREXZ
181
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
182
-  - sed -i 's/\/\/#define COREXZ/#define COREXZ/g' Marlin/Configuration.h
183
-  - rm -rf .build/
184
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
149
+  - restore_configs
150
+  - opt_enable COREXZ
151
+  - build_marlin
185
   # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
152
   # Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
186
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
187
-  - sed -i 's/\/\/#define Z_DUAL_STEPPER_DRIVERS/#define Z_DUAL_STEPPER_DRIVERS/g' Marlin/Configuration_adv.h
188
-  - sed -i 's/\ \ \/\/\ \#define Z_DUAL_ENDSTOPS/#define Z_DUAL_ENDSTOPS/g' Marlin/Configuration_adv.h
189
-  - sed -i 's/#define X_MAX_PIN           2/#define X_MAX_PIN          -1/g' Marlin/pins_RAMPS_14.h
190
-  - sed -i 's/\ \ \ \ \#define Z2_MAX_PIN 36/#define Z2_MAX_PIN  2/g' Marlin/Configuration_adv.h
191
-  - rm -rf .build/
192
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
193
-  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
194
-  - cp Marlin/Configuration_adv.h.backup Marlin/Configuration_adv.h
195
-  - cp Marlin/pins_RAMPS_14.h.backup Marlin/pins_RAMPS_14.h
153
+  - restore_configs
154
+  - opt_enable_adv Z_DUAL_STEPPER_DRIVERS
155
+  - opt_enable_adv Z_DUAL_ENDSTOPS
156
+  - pins_set RAMPS_14 X_MAX_PIN -1
157
+  - opt_set_adv Z2_MAX_PIN 2
158
+  - build_marlin
159
+  - restore_configs
196
   ######## Example Configurations ##############
160
   ######## Example Configurations ##############
197
   # Delta Config (generic)
161
   # Delta Config (generic)
198
-  - cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
199
-  - rm -rf .build/
200
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
162
+  - use_example_configs delta/generic
163
+  - build_marlin
201
   # Delta Config (generic) + ABL + ALLEN_KEY
164
   # Delta Config (generic) + ABL + ALLEN_KEY
202
-  - cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
203
-  - sed -i 's/#define DISABLE_MIN_ENDSTOPS/\/\/#define DISABLE_MIN_ENDSTOPS/g' Marlin/Configuration.h
204
-  - sed -i 's/\/\/#define AUTO_BED_LEVELING_FEATURE/#define AUTO_BED_LEVELING_FEATURE/g' Marlin/Configuration.h
205
-  - sed -i 's/\/\/#define Z_PROBE_ALLEN_KEY/#define Z_PROBE_ALLEN_KEY/g' Marlin/Configuration.h
206
-  - rm -rf .build/
207
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
165
+  - use_example_configs delta/generic
166
+  - opt_disable DISABLE_MIN_ENDSTOPS
167
+  - opt_enable AUTO_BED_LEVELING_FEATURE
168
+  - opt_enable Z_PROBE_ALLEN_KEY
169
+  - build_marlin
208
   # Delta Config (Mini Kossel)
170
   # Delta Config (Mini Kossel)
209
-  - cp Marlin/example_configurations/delta/kossel_mini/Configuration* Marlin/
210
-  - rm -rf .build/
211
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
171
+  - use_example_configs delta/kossel_mini
172
+  - build_marlin
212
   # Makibox Config  need to check board type for Teensy++ 2.0
173
   # Makibox Config  need to check board type for Teensy++ 2.0
213
-  #- cp Marlin/example_configurations/makibox/Configuration* Marlin/
214
-  #- rm -rf .build/
215
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
174
+  #- use_example_configs makibox
175
+  #- build_marlin
216
   # SCARA Config
176
   # SCARA Config
217
-  - cp Marlin/example_configurations/SCARA/Configuration* Marlin/
218
-  - rm -rf .build/
219
-  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
177
+  - use_example_configs SCARA
178
+  - build_marlin
220
   # tvrrug Config need to check board type for sanguino atmega644p
179
   # tvrrug Config need to check board type for sanguino atmega644p
221
-  #- cp Marlin/example_configurations/tvrrug/Round2/Configuration* Marlin/
222
-  #- rm -rf .build/
223
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
180
+  #- use_example_configs tvrrug/Round2
181
+  #- build_marlin
224
   ######## Board Types #############
182
   ######## Board Types #############

+ 4
- 0
LinuxAddons/bin/build_marlin View File

1
+#!/usr/bin/env bash
2
+
3
+rm -rf .build/
4
+DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino

+ 3
- 0
LinuxAddons/bin/opt_disable View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed 's/\(\/\/ *\)*\(\#define *$1\)/\/\/\2/g' Marlin/Configuration.h"

+ 3
- 0
LinuxAddons/bin/opt_enable View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed -i 's/\/\/ *\(#define *$1\)/\1/g' Marlin/Configuration.h"

+ 3
- 0
LinuxAddons/bin/opt_enable_adv View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed -i 's/\/\/ *\(#define *$1\)/\1/g' Marlin/Configuration_adv.h"

+ 3
- 0
LinuxAddons/bin/opt_set View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed -i 's/\(#define *$1\) *.*$/\1 $2/g' Marlin/Configuration.h"

+ 3
- 0
LinuxAddons/bin/opt_set_adv View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed -i 's/\(#define *$1\) *.*$/\1 $2/g' Marlin/Configuration_adv.h"

+ 3
- 0
LinuxAddons/bin/pins_set View File

1
+#!/usr/bin/env bash
2
+
3
+eval "sed -i 's/\(#define *$2\) *.*$/\1 $3/g' Marlin/pins_$1.h"

+ 5
- 0
LinuxAddons/bin/restore_configs View File

1
+#!/usr/bin/env bash
2
+
3
+cp Marlin/Configuration.h.backup      Marlin/Configuration.h
4
+cp Marlin/Configuration_adv.h.backup  Marlin/Configuration_adv.h
5
+cp Marlin/pins_RAMPS_14.h.backup      Marlin/pins_RAMPS_14.h

+ 3
- 0
LinuxAddons/bin/use_example_configs View File

1
+#!/usr/bin/env bash
2
+
3
+eval "cp Marlin/example_configurations/$1/Configuration* Marlin/"

Loading…
Cancel
Save