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.

30 lines
590 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 upgrade --dev
  10. pio platform update -p
  11. }
  12. cd code
  13. if [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test Host" ]; then
  14. pio_install
  15. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test WebUI" ]; then
  16. npm_install
  17. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test PlatformIO Build" ]; then
  18. pio_install
  19. elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Release" ]; then
  20. npm_install
  21. pio_install
  22. else
  23. echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
  24. exit 1
  25. fi