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.
|
#!/bin/bash
|
|
|
|
set -x -e -v
|
|
|
|
npm_install() {
|
|
npm install -g npm@latest
|
|
npm ci
|
|
}
|
|
|
|
pio_install() {
|
|
pip install -U platformio
|
|
pio upgrade --dev
|
|
pio platform update -p
|
|
}
|
|
|
|
cd code
|
|
|
|
if [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test host" ]; then
|
|
pio_install
|
|
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test webui" ]; then
|
|
npm_install
|
|
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Test platformio build" ]; then
|
|
pio_install
|
|
elif [ "${TRAVIS_BUILD_STAGE_NAME}" = "Release" ]; then
|
|
npm_install
|
|
pio_install
|
|
else
|
|
echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
|
|
exit 1
|
|
fi
|