2020-02-18 23:55:06 -05:00
|
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2020-05-21 02:11:19 -04:00
|
|
|
|
. "$DIR/.common.sh"
|
2020-02-18 23:55:06 -05:00
|
|
|
|
|
|
|
|
|
# Ensure docker-compose exists
|
|
|
|
|
if hash docker-compose 2>/dev/null; then
|
|
|
|
|
cd "${DIR}/.."
|
|
|
|
|
echo -e "${BLUE}❯ ${CYAN}Testing Dev Stack ...${RESET}"
|
2020-10-08 07:38:20 -04:00
|
|
|
|
docker-compose exec -T npm bash -c "cd /app && task test"
|
2020-02-18 23:55:06 -05:00
|
|
|
|
else
|
|
|
|
|
echo -e "${RED}❯ docker-compose command is not available${RESET}"
|
|
|
|
|
fi
|