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.

27 lines
494 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 webui" ]; then
  13. npm_install
  14. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test platformio build" ]; then
  15. pio_install
  16. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Release" ]; then
  17. npm_install
  18. pio_install
  19. else
  20. echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
  21. exit 1
  22. fi