Add travis helper update_defaults

This commit is contained in:
Scott Lahteine 2018-06-11 18:18:23 -05:00
parent 2ba198a624
commit b8f8dc72f0
2 changed files with 8 additions and 8 deletions

View file

@ -356,8 +356,7 @@ script:
- export TEST_PLATFORM="-e teensy35" - export TEST_PLATFORM="-e teensy35"
- restore_configs - restore_configs
- opt_set MOTHERBOARD BOARD_TEENSY35_36 - opt_set MOTHERBOARD BOARD_TEENSY35_36
- cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h - update_defaults
- cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h
- cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup - cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
# #
# Test Teensy3.5 with default config # Test Teensy3.5 with default config
@ -453,8 +452,7 @@ script:
- restore_configs - restore_configs
- opt_set MOTHERBOARD BOARD_RAMPS4DUE_EFB - opt_set MOTHERBOARD BOARD_RAMPS4DUE_EFB
- opt_set S_CURVE_ACCELERATION - opt_set S_CURVE_ACCELERATION
- cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h - update_defaults
- cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM} - build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
############################# #############################
@ -464,15 +462,13 @@ script:
- export TEST_PLATFORM="-e LPC1768" - export TEST_PLATFORM="-e LPC1768"
- restore_configs - restore_configs
- opt_set MOTHERBOARD BOARD_RAMPS_14_RE_ARM_EFB - opt_set MOTHERBOARD BOARD_RAMPS_14_RE_ARM_EFB
- cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h - update_defaults
- cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM} - build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
# #
# Enable VIKI2, SDSUPPORT # Enable VIKI2, SDSUPPORT
# #
- restore_configs - restore_configs
- opt_set MOTHERBOARD BOARD_RAMPS_14_RE_ARM_EFB - opt_set MOTHERBOARD BOARD_RAMPS_14_RE_ARM_EFB
- cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h - update_defaults
- cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h
- opt_enable VIKI2 SDSUPPORT - opt_enable VIKI2 SDSUPPORT
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM} - build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}

4
buildroot/bin/update_defaults Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h
cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h