Add scripts for .travis.yml to append config options

This commit is contained in:
Scott Lahteine 2017-10-29 03:43:27 -05:00
parent e04425281d
commit 7465ede058
3 changed files with 7 additions and 1 deletions

View File

@ -182,7 +182,7 @@ script:
- opt_set_adv I2C_SLAVE_ADDRESS 63 - opt_set_adv I2C_SLAVE_ADDRESS 63
- opt_enable_adv ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE LCD_INFO_MENU - opt_enable_adv ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE LCD_INFO_MENU
- pins_set RAMPS X_MAX_PIN -1 - pins_set RAMPS X_MAX_PIN -1
- opt_set_adv Z2_MAX_PIN 2 - opt_add_adv Z2_MAX_PIN 2
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM} - build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
# #
# Enable COREXY # Enable COREXY

3
buildroot/bin/opt_add Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
eval "echo \"#define ${1} ${2}\" >>Marlin/Configuration.h"

3
buildroot/bin/opt_add_adv Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
eval "echo \"#define ${1} ${2}\" >>Marlin/Configuration_adv.h"