Files
espurna/travis_script.sh
Max Prokhorov a2ada68d6e Restore WebUI builds in travis (#1953)
* test: restore webui builds in travis

* show build.sh usage via -h, exclude build stage instead of explicitly including it
2019-10-22 17:07:52 +03:00

18 lines
433 B
Bash
Executable File

#!/bin/bash
set -x -e -v
cd code
if [ "${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 -p
else
echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
exit 1
fi