Files
openfoodnetwork/script/ci/run_js_tests.sh
Em-AK c72d17dc83 Run karma task only in test environment
and fails otherwise, as it needs the defaults defined in test environment
2017-04-28 11:28:24 +10:00

18 lines
283 B
Bash
Executable File

#!/bin/bash
set -e
echo "--- Loading environment"
source ./script/ci/includes.sh
load_environment
checkout_ofn_commit
echo "--- Verifying branch is based on current master"
exit_unless_master_merged
echo "--- Bundling"
bundle install
echo "--- Running tests"
./script/karma run