github.com/echohead/hub@v2.2.1+incompatible/script/test (about)

     1  #!/usr/bin/env bash
     2  # Usage: script/test
     3  #
     4  # Run Go and Cucumber test suites for hub.
     5  
     6  set -e
     7  
     8  case "$1" in
     9  "" )
    10    ;;
    11  -h | --help )
    12    sed -ne '/^#/!q;s/.\{1,2\}//;1d;p' < "$0"
    13    exit
    14    ;;
    15  * )
    16    "$0" --help >&2
    17    exit 1
    18  esac
    19  
    20  STATUS=0
    21  
    22  trap "exit 1" INT
    23  
    24  script/build
    25  script/build test || STATUS="$?"
    26  script/ruby-test || STATUS="$?"
    27  
    28  exit "$STATUS"