15 lines
457 B
Bash
Executable File
15 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
test_directory="$(cd "$(dirname "$0")" && pwd)"
|
|
bats_executable="${test_directory}/../bats/bin/bats"
|
|
|
|
[ ! -e $bats_executable ] && \
|
|
git clone --depth 1 https://github.com/sstephenson/bats.git ${test_directory}/../bats
|
|
|
|
if [ -z "${BASH_IT}" ]; then
|
|
export BASH_IT=$(cd ${test_directory} && dirname $(pwd))
|
|
fi
|
|
|
|
# TODO Add tests for bash-it completion
|
|
|
|
exec $bats_executable ${CI:+--tap} ${test_directory}/{install,lib,plugins,themes}
|