JLU5-SupyPlugins/tests-wrapper.sh
2021-03-05 01:08:57 -08:00

12 lines
377 B
Bash
Executable File

#!/bin/bash
# Exclude stubs for (re)moved plugins
SKIP_PLUGINS=("--exclude=./Weather" "--exclude=./DDG" "--exclude=./SedRegex")
if [[ -n "$DRONE_PULL_REQUEST" ]]; then
echo "Skipping tests that require secret API keys"
export SKIP_PLUGINS+=("--exclude=./LastFM" "--exclude=./NuWeather" "--exclude=./AQI")
fi
supybot-test -c --plugins-dir=. "${SKIP_PLUGINS[@]}" "$@"