lint/.vscode/testlinter.sh

27 lines
680 B
Bash
Raw Normal View History

2020-06-29 10:08:04 -04:00
#!/usr/bin/env bash
# At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder
# You can also use ln -s /path /tmp/lint as an alternative
# If you do neither, this will default to running against the test automation files
###########
# GLOBALS #
###########
CODE_PATH='/tmp/lint' # Path to code base
##################
# Check the path #
##################
if [ ! -L $CODE_PATH ]; then
# Create symbolic link
ln -s "$PWD"/.automation/test $CODE_PATH
fi
2020-06-29 10:08:04 -04:00
#########################
# Export to run locally #
#########################
export RUN_LOCAL=true
2020-06-29 10:08:04 -04:00
2020-06-29 10:16:17 -04:00
# shellcheck disable=SC1091,SC1090
2020-06-29 10:08:04 -04:00
source "$PWD"/lib/linter.sh