Sha256: 7b98df1d5d164e8aa28c4f23fc23c0f72a80ad1c0c75a73dadafe7d5bd40e2ad

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 Bytes

Contents

#!/usr/bin/env bash

if [[ $DOCKER_CONTAINER -ne 1 ]]; then
    if [[ $(docker-compose ps -q | wc -l) -gt 0 ]]; then
        source bin/helpers/docker
        runOnDocker ruby
    fi
fi

echo "Starting unit tests"
bundle exec rake spec
if [ $? -ne 0 ]; then
    echo ""
    echo ""
    echo "Unit tests failed; push aborted!"
    exit 1
fi

echo
echo "Starting rubocop"
bundle exec rubocop --format worst --format simple --format offenses
if [ $? -ne 0 ]; then
    echo ""
    echo ""
    echo "Rubocop failed; push aborted!"
    exit 1
fi

echo
echo "All pre-push checks passed! Pushing to remote"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slayer-0.5.4 .githooks/pre-push
slayer-0.5.3 .githooks/pre-push
slayer-0.5.2 .githooks/pre-push
slayer-0.5.1 .githooks/pre-push
slayer-0.5.0.beta .githooks/pre-push
slayer-0.4.0.beta4 .githooks/pre-push
slayer-0.4.0.beta3 .githooks/pre-push