Sha256: c1a7311efd2dd1443956dc6d62ff0493cbe1aea43fb0ea1665fecbf7833baec6

Contents?: true

Size: 1.3 KB

Versions: 83

Compression:

Stored size: 1.3 KB

Contents

#!/usr/bin/env bash

[ -n "$GO_DEBUG" ] && set -x
set -e

project_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

verbose="no"
skip_checks="no"
offline="no"

missing_dependency="no"

[ -n "$GO_DEBUG" ] && verbose="yes"
[ -n "$GO_SKIP_CHECKS" ] && skip_checks="yes"
[ -n "$GO_OFFLINE" ] && offline="yes"


if [[ "$skip_checks" = "no" ]]; then
    echo "Checking for system dependencies."
    ruby_version="$(cat "$project_dir"/.ruby-version)"
    if ! type ruby >/dev/null 2>&1 || ! ruby -v | grep -q "$ruby_version"; then
        echo "This codebase requires Ruby $ruby_version."
        missing_dependency="yes"
    fi

    if [[ "$missing_dependency" = "yes" ]]; then
        echo "Please install missing dependencies to continue."
        exit 1
    fi

    echo "All system dependencies present. Continuing."
fi

if [[ "$offline" = "no" ]]; then
    echo "Installing bundler."
    if [[ "$verbose" = "yes" ]]; then
        gem install --no-document bundler
    else
        gem install --no-document bundler --silent
    fi

    echo "Installing ruby dependencies."
    if [[ "$verbose" = "yes" ]]; then
        bundle install
    else
        bundle install --quiet
    fi
fi

echo "Starting rake."
if [[ "$verbose" = "yes" ]]; then
    time bundle exec rake --verbose "$@"
else
    time bundle exec rake "$@"
fi

Version data entries

83 entries across 83 versions & 6 rubygems

Version Path
lino-1.5.0 go
lino-1.4.0.pre.2 go
rake_ssh-0.5.0.pre.1 go
rake_template-0.3.0.pre.1 go
rake_github-0.6.0.pre.1 go
rake_docker-2.12.0.pre.1 go
lino-1.4.0.pre.1 go
rake_circle_ci-0.8.0.pre.1 go
rake_template-0.2.0 go
rake_template-0.1.0.pre.3 go
rake_template-0.1.0.pre.2 go
lino-1.3.0 go
lino-1.2.0.pre.2 go
lino-1.2.0.pre.1 go
rake_circle_ci-0.7.0 go
rake_circle_ci-0.6.0.pre.1 go
rake_ssh-0.4.0 go
rake_ssh-0.3.0.pre.1 go
rake_github-0.5.0 go
rake_github-0.4.0.pre.1 go