Update Travis Tests to run platforms in parallel (#11256)
This commit is contained in:
committed by
Scott Lahteine
parent
e486326910
commit
c43793aa1e
24
buildroot/bin/env_backup
Executable file
24
buildroot/bin/env_backup
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
if [ -d ".test" ]; then
|
||||
printf "\033[0;31mEnvironment backup already exists!\033[0m\n"
|
||||
else
|
||||
mkdir .test
|
||||
cp Marlin/Configuration.h .test/Configuration.h
|
||||
cp Marlin/Configuration_adv.h .test/Configuration_adv.h
|
||||
|
||||
if [ -f Marlin/_Bootscreen.h ]; then
|
||||
cp Marlin/_Bootscreen.h .test/_Bootscreen.h
|
||||
fi
|
||||
|
||||
if [ -f Marlin/_Statusscreen.h ]; then
|
||||
cp Marlin/_Statusscreen.h .test/_Statusscreen.h
|
||||
fi
|
||||
|
||||
cp -r Marlin/src/pins .test/pins
|
||||
printf "\033[0;32mEnvironment Backup created\033[0m\n"
|
||||
fi
|
29
buildroot/bin/env_clean
Executable file
29
buildroot/bin/env_clean
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -d ".pioenvs" ]; then
|
||||
rm -r .pioenvs
|
||||
fi
|
||||
|
||||
if [ -d ".piolibdeps" ]; then
|
||||
rm -r .piolibdeps
|
||||
fi
|
||||
|
||||
if [ -d ".piolib" ]; then
|
||||
rm -r .piolib
|
||||
fi
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
if [ $1 = "--deep" ]; then
|
||||
if [ -d "~/.platformio/packages" ]; then
|
||||
rm -r ~/.platformio/packages/*
|
||||
fi
|
||||
|
||||
if [ -d "~/.platformio/platforms" ]; then
|
||||
rm -r ~/.platformio/platforms/*
|
||||
fi
|
||||
|
||||
if [ -d "~/.platformio/.cache" ]; then
|
||||
rm -r ~/.platformio/.cache/*
|
||||
fi
|
||||
fi
|
||||
fi
|
30
buildroot/bin/env_restore
Executable file
30
buildroot/bin/env_restore
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
if [ -d ".test" ]; then
|
||||
cp .test/Configuration.h Marlin/Configuration.h
|
||||
cp .test/Configuration_adv.h Marlin/Configuration_adv.h
|
||||
rm .test/Configuration.h
|
||||
rm .test/Configuration_adv.h
|
||||
|
||||
if [ -f .test/_Bootscreen.h ]; then
|
||||
cp .test/_Bootscreen.h Marlin/_Bootscreen.h
|
||||
rm .test/_Bootscreen.h
|
||||
fi
|
||||
|
||||
if [ -f .test/_Statusscreen.h ]; then
|
||||
cp .test/_Statusscreen.h Marlin/_Statusscreen.h
|
||||
rm .test/_Statusscreen.h
|
||||
fi
|
||||
|
||||
cp -r .test/pins Marlin/src
|
||||
rm -r .test/pins
|
||||
|
||||
rmdir .test
|
||||
printf "\033[0;32mEnvironment Restored\033[0m\n"
|
||||
else
|
||||
printf "\033[0;31mEnvironment Backup not available!\033[0m\n"
|
||||
fi
|
@@ -2,8 +2,16 @@
|
||||
|
||||
cp Marlin/src/config/default/Configuration.h Marlin/Configuration.h
|
||||
cp Marlin/src/config/default/Configuration_adv.h Marlin/Configuration_adv.h
|
||||
cp Marlin/src/pins/pins_RAMPS.h.backup Marlin/src/pins/pins_RAMPS.h
|
||||
|
||||
if [ -f Marlin/src/config/_Bootscreen.h ]; then
|
||||
rm Marlin/src/config/_Bootscreen.h
|
||||
if [ -f Marlin/src/pins/pins_RAMPS.h.backup ]; then
|
||||
cp Marlin/src/pins/pins_RAMPS.h.backup Marlin/src/pins/pins_RAMPS.h
|
||||
rm Marlin/src/pins/pins_RAMPS.h.backup
|
||||
fi
|
||||
|
||||
if [ -f Marlin/_Bootscreen.h ]; then
|
||||
rm Marlin/_Bootscreen.h
|
||||
fi
|
||||
|
||||
if [ -f Marlin/_Statusscreen.h ]; then
|
||||
rm Marlin/_Statusscreen.h
|
||||
fi
|
||||
|
Reference in New Issue
Block a user