Files
edx-platform/scripts/all-tests.sh
Ned Batchelder f47a53eb66 Update edx-lint to 0.2.6
This gets us checking for tests inheriting from other tests.  When that
happens, tests get run more than once, which is pointless.  We have a
few dozen new warnings due to this new check.

This also disables unused-wildcard-import.  That removes a few hundred
warnings.

Together, this means we can reduce the pylint limit to 5999. :)
2015-09-03 18:22:21 -04:00

40 lines
962 B
Bash
Executable File

#!/usr/bin/env bash
set -e
###############################################################################
#
# all-tests.sh
#
# Execute tests for edx-platform. This script is designed to be the
# entry point for various CI systems.
#
###############################################################################
# Violations thresholds for failing the build
export PYLINT_THRESHOLD=5999
export JSHINT_THRESHOLD=3700
doCheckVars() {
if [ -n "$CIRCLECI" ] ; then
SCRIPT_TO_RUN=scripts/circle-ci-tests.sh
elif [ -n "$JENKINS_HOME" ] ; then
source scripts/jenkins-common.sh
SCRIPT_TO_RUN=scripts/generic-ci-tests.sh
fi
}
# Determine the CI system for the environment
doCheckVars
# Run appropriate CI system script
if [ -n "$SCRIPT_TO_RUN" ] ; then
$SCRIPT_TO_RUN
# Exit with the exit code of the called script
exit $?
else
echo "ERROR. Could not detect continuous integration system."
exit 1
fi