github.com/scorpionis/hub@v2.2.1+incompatible/script/bootstrap (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  if [ -n "$TRAVIS" ]; then
     5    curl -fsSL https://ci-cache.s3.amazonaws.com/tmux-zsh.ubuntu.tgz | tar -xz -C ~
     6    exit 0
     7  fi
     8  
     9  STATUS=0
    10  
    11  if ! go version; then
    12    echo "You need to install Go 1.2 to build hub" >&2
    13    STATUS=1
    14  fi
    15  
    16  { ruby --version
    17    bundle install --path vendor/bundle -j 4
    18  } || {
    19    echo "You need Ruby 2.1 and Bundler to run hub tests" >&2
    20    STATUS=1
    21  }
    22  
    23  if [ $STATUS -eq 0 ]; then
    24    echo "Everything OK."
    25  fi
    26  
    27  exit $STATUS