[2.0.x] Debug Travis tests and scripts (#11704)
This commit is contained in:
@ -3,14 +3,9 @@
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
env_backup
|
||||
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_RAMPS4DUE_EFB
|
||||
update_defaults
|
||||
|
||||
opt_enable S_CURVE_ACCELERATION EEPROM_SETTINGS
|
||||
opt_set E0_AUTO_FAN_PIN 8
|
||||
opt_set EXTRUDER_AUTO_FAN_SPEED 100
|
||||
exec_test $1 $2 "RAMPS4DUE_EFB S_CURVE_ACCELERATION EEPROM_SETTINGS"
|
||||
|
||||
env_restore
|
||||
|
@ -3,11 +3,8 @@
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
env_backup
|
||||
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_RAMPS_14_RE_ARM_EFB
|
||||
update_defaults
|
||||
|
||||
exec_test $1 $2 "Build Re-ARM Default Configuration"
|
||||
|
||||
restore_configs
|
||||
@ -63,4 +60,5 @@ opt_enable FAN_SOFT_PWM SDSUPPORT
|
||||
opt_enable USE_XMAX_PLUG
|
||||
exec_test $1 $2 "MKS SBASE Many less common options"
|
||||
|
||||
env_restore
|
||||
#clean up
|
||||
restore_configs
|
||||
|
@ -3,12 +3,10 @@
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
env_backup
|
||||
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_STM32F1R
|
||||
update_defaults
|
||||
|
||||
opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
|
||||
exec_test $1 $2 "STM32F1R EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT"
|
||||
|
||||
env_restore
|
||||
#cleanup
|
||||
restore_configs
|
||||
|
@ -3,13 +3,15 @@
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
env_backup
|
||||
|
||||
#
|
||||
# Backup pins_RAMPS.h
|
||||
#
|
||||
cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
|
||||
#
|
||||
# Build with the default configurations
|
||||
#
|
||||
restore_configs
|
||||
exec_test $1 $2 "Default Configuration"
|
||||
|
||||
#
|
||||
# Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
|
||||
# Test a "Fix Mounted" Probe with Safe Homing, some arc options,
|
||||
@ -309,4 +311,5 @@ exec_test $1 $2 "TMC2208 Config"
|
||||
#
|
||||
#
|
||||
|
||||
env_restore
|
||||
#clean up
|
||||
restore_configs
|
||||
|
@ -1,17 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# start_tests
|
||||
#
|
||||
# Run one or more tests
|
||||
#
|
||||
|
||||
export PATH="$PATH:$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"
|
||||
export PATH="$PATH:./buildroot/bin"
|
||||
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
exec_test() {
|
||||
exec_test () {
|
||||
printf "\033[0;32m[Test $2] \033[0m$3... "
|
||||
if build_marlin_pio $1 "-e $2"; then
|
||||
printf "\033[0;32mPassed\033[0m\n"
|
||||
@ -24,6 +18,9 @@ exec_test() {
|
||||
}
|
||||
export -f exec_test
|
||||
|
||||
env_backup
|
||||
printf "Running \033[0;32m$2\033[0m Tests\n"
|
||||
|
||||
if [[ $3 = "--deep-clean" ]]; then
|
||||
echo "Deleting all PlatformIO caches, downloads and installed packages..."
|
||||
env_clean --deep
|
||||
@ -39,9 +36,8 @@ if [[ $2 = "ALL" ]]; then
|
||||
$f $1 $testenv
|
||||
done
|
||||
else
|
||||
printf "Running \033[0;32m$2\033[0m Tests\n"
|
||||
exec_test $1 "$2 --target clean" "Setup Build Environment"
|
||||
$2_tests $1 $2
|
||||
fi
|
||||
|
||||
printf "\033[0;32mAll tests completed successfully\033[0m\n"
|
||||
env_restore
|
||||
|
@ -3,11 +3,9 @@
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
env_backup
|
||||
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_TEENSY35_36
|
||||
update_defaults
|
||||
|
||||
cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
|
||||
#
|
||||
# Test Teensy3.5 with default config
|
||||
#
|
||||
@ -94,4 +92,5 @@ opt_add_adv Z2_MAX_PIN 2
|
||||
opt_enable USE_XMAX_PLUG
|
||||
exec_test $1 $2 "Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS"
|
||||
|
||||
env_restore
|
||||
#cleanup
|
||||
restore_configs
|
||||
|
Reference in New Issue
Block a user