Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Created November 28, 2017 11:04
Show Gist options
  • Select an option

  • Save xuyuji9000/a136757459eb5c3e313a0d5b8db0e94b to your computer and use it in GitHub Desktop.

Select an option

Save xuyuji9000/a136757459eb5c3e313a0d5b8db0e94b to your computer and use it in GitHub Desktop.

Revisions

  1. xuyuji9000 created this gist Nov 28, 2017.
    11 changes: 11 additions & 0 deletions automation-template.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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