You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.1 KiB
Bash

#!/usr/bin/env bash
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-11-05 23:29:15 +0000 (Thu, 05 Nov 2015)
#
# https://github.com/harisekhon/bash-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -z "${PROJECT:-}" ]; then
export PROJECT=bash-tools
fi
. "$srcdir/utils.sh"
. "$srcdir/docker.sh"
section "Running Bash Tools ALL"
declare_if_inside_docker
bash_tools_start_time="$(start_timer)"
# do help afterwards for Spark to be downloaded, and then help will find and use downloaded spark for SPARK_HOME
#"$srcdir/help.sh"
# this is usually run after build, no point testing again
#. "$srcdir/check_gradle_build.sh"
# don't run this here, it needs to be called explicitly otherwise will fail 'make test deep-clean'
#"$srcdir/check_docker_clean.sh"
"$srcdir/check_non_executable_scripts.sh"
"$srcdir/check_tests_run_qualified.sh"
. "$srcdir/check_makefile.sh"
# this is usually run after build, no point testing again
#. "$srcdir/check_maven_pom.sh"
. "$srcdir/check_perl_syntax.sh"
. "$srcdir/check_ruby_syntax.sh"
. "$srcdir/python_compile.sh"
. "$srcdir/check_python_find_quit.sh"
. "$srcdir/check_python_asserts.sh"
. "$srcdir/check_python_exception_pass.sh"
. "$srcdir/check_python_pylint.sh"
#"$srcdir/python3.sh"
# this is usually run after build, no point testing again
#. "$srcdir/check_sbt_build.sh"
. "$srcdir/check_shell_syntax.sh"
. "$srcdir/check_bash_arrays.sh"
. "$srcdir/check_travis_yml.sh"
. "$srcdir/check_tld_chars.sh"
# too heavy to run all the time, isExcluded on every file has really bad performance
. "$srcdir/check_whitespace.sh"
. "$srcdir/check_no_tabs.sh"
"$srcdir/check_pytools.sh"
#for script in $(find . -name 'test*.sh'); do
# "$srcdir/$script" -vvv
#done
time_taken "$bash_tools_start_time" "Bash Tools All Checks Completed in"
section2 "Bash Tools All Checks Completed"
echo