Files
espurna/ci_script.sh
Maxim Prokhorov f11468abba ci: github actions
- remove .travis.yml
- ./travis_{script,install}.sh -> ./ci_{script,install}.sh
- flush stdout in test script to see logs more promptly
- adjust git config to ignore 'detachedHead' warnings
2020-12-30 22:44:28 +03:00

26 lines
365 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
;;
("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