Mirror of espurna firmware for wireless switches and more
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

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