mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 06:54:16 +01:00
- remove version handling, PIO already does this for us - directly set generate_release_sh.py arguments instead of having a getopt proxy for each one (and having to deal with short-arg support) - slightly more logs for the build process
27 lines
396 B
Bash
Executable File
27 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x -e -v
|
|
|
|
cd code
|
|
|
|
case "$1" in
|
|
("host")
|
|
cd test/ && pio test
|
|
;;
|
|
("webui")
|
|
./build.sh -f environments
|
|
git --no-pager diff --stat
|
|
;;
|
|
("build")
|
|
# shellcheck disable=SC2086
|
|
scripts/test_build.py -e "$TEST_ENV" $TEST_EXTRA_ARGS
|
|
;;
|
|
("release")
|
|
./build.sh -r
|
|
;;
|
|
(*)
|
|
echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
|
|
exit 1
|
|
;;
|
|
esac
|