Created
November 28, 2017 11:04
-
-
Save xuyuji9000/a136757459eb5c3e313a0d5b8db0e94b to your computer and use it in GitHub Desktop.
This is the template for project automation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
White='\033[1;36m' | |
NC='\033[0m' # No Color | |
case "$1" in | |
"test" ) | |
docker run --rm -it -v "$PWD":/app -w /app node:carbon-alpine /bin/sh -c "npm run test";; | |
* ) | |
echo "${White}test${NC}: run node test in docker" | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment