Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
516 B

#!/bin/bash
set -x -e -v
cd code
if [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test Host" ]; then
cd test/ && pio test
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test WebUI" ]; then
./build.sh -f environments
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test PlatformIO Build" ]; then
# shellcheck disable=SC2086
scripts/test_build.py -e "$TEST_ENV" $TEST_EXTRA_ARGS
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Release" ]; then
./build.sh -r
else
echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
exit 1
fi