#! /usr/bin/env sh
set -e

case "$1" in

    "PYUNIT")
        echo "Running python unit tests"
        paver test
        ;;
    "LINT")
        if test "$TRAVIS_BRANCH" != "" ; then
            echo "Linting all changes between HEAD and $TRAVIS_BRANCH"
            paver lint --base $TRAVIS_BRANCH
        else
            echo "Linting all current changes"
            paver lint
        fi

        # Lint Javascript
        npm run lint -s
        ;;
    "PYBUILD")
        echo "Building all python files"
        python -m compileall .
        ;;
    "JSUNIT")
        echo "Running javascript tests"
        npm test
        ;;
    *)
        echo "Unknown job type $JOB"
        exit -1
        ;;
esac

#! /usr/bin/env sh
set -e

case "$1" in

    "PYUNIT")
        echo "Running python unit tests"
        paver test
        ;;
    "LINT")
        if test "$TRAVIS_BRANCH" != "" ; then
            echo "Linting all changes between HEAD and $TRAVIS_BRANCH"
            paver lint --base $TRAVIS_BRANCH
        else
            echo "Linting all current changes"
            paver lint
        fi

        # Lint Javascript
        npm run lint -s
        ;;
    "PYBUILD")
        echo "Building all python files"
        # python -m compileall .
        echo "Skipping this because it's clowny"
        ;;
    "JSUNIT")
        echo "Running javascript tests"
        npm test
        ;;
    *)
        echo "Unknown job type $JOB"
        exit -1
        ;;
esac

Disable PYBUILD job for now
Disable PYBUILD job for now

Will debug later...