#! /usr/bin/env sh
set -e
. $(pwd)/ops/travis/should-deploy.sh

if test "$1" != "DEPLOY" ; then
    check_clowntown_tag
fi

case "$1" in

    "PYUNIT" | "JSUNIT" | "PYBUILD" )
        echo "Setting up for unit tests..."
        paver make
        ;;
    "LINT")
        echo "Setting up to lint. Nothing to do..."
        ;;
    "DEPLOY")
        echo "Setting up to deploy. Nothing to do..."
        ;;
    *)
        echo "Unknown job type $JOB"
        exit -1
        ;;
esac

#! /usr/bin/env sh
set -e
. $(pwd)/ops/travis/should-deploy.sh

if test "$1" != "DEPLOY" ; then
    check_clowntown_tag
fi

case "$1" in

    "PYUNIT" | "JSUNIT" | "PYBUILD" )
        echo "Setting up for unit tests..."
        cp static/javascript/tba_js/tba_keys_template.js static/javascript/tba_js/tba_keys.js
        paver make
        ;;
    "LINT")
        echo "Setting up to lint. Nothing to do..."
        ;;
    "DEPLOY")
        echo "Setting up to deploy. Nothing to do..."
        ;;
    *)
        echo "Unknown job type $JOB"
        exit -1
        ;;
esac

Set up stub key file on travis
Set up stub key file on travis

[nodeploy]
