reagent/run-tests.sh
Juho Teperi c68f5a88f4 Optimize node modules, remove old stuff
- Removed webpack build for now, not up-to-date, can be added later if
needed
- Share node modules using symlinks for envs that use the same packages
2017-10-13 16:42:25 +03:00

40 lines
653 B
Bash
Executable File

#!/bin/bash
# Kill all subshells with ctrl-c
trap "kill 0" SIGINT
reset='\033[0m'
red='\033[0;31m'
green='\033[0;32m'
blue='\033[0;34m'
EXIT=0
SUMMARY="$blue##\n## SUMMARY\n##$reset\n\n"
for env in test-environments/*; do
name=$(basename "$env")
(
cd "$env"
echo -e "$blue##"
echo -e "## TESTING $name"
echo -e "##$reset"
echo
./test.sh
)
if [[ $? != "0" ]]; then
echo
echo -e "${red}FAIL $name$reset"
SUMMARY="$SUMMARY${red}FAIL $name$reset\n"
EXIT=1
else
SUMMARY="$SUMMARY${green}OK $name$reset\n"
fi
echo
echo
done
echo -e "$SUMMARY"
exit $EXIT