#!/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 source scripts/thresholds.sh XSSLINT_THRESHOLDS=$(cat scripts/xsslint_thresholds.json) export XSSLINT_THRESHOLDS=${XSSLINT_THRESHOLDS//[[:space:]]/} # Run appropriate CI system script (with args if provided) 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