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.

29 lines
568 B

  1. #!/bin/bash
  2. set -x -e -v
  3. npm_install() {
  4. npm install -g npm@latest
  5. npm ci
  6. }
  7. pio_install() {
  8. pip install -U platformio
  9. pio platform update -p
  10. }
  11. cd code
  12. if [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test host" ]; then
  13. pio_install
  14. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test webui" ]; then
  15. npm_install
  16. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test platformio build" ]; then
  17. pio_install
  18. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Release" ]; then
  19. npm_install
  20. pio_install
  21. else
  22. echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
  23. exit 1
  24. fi