Hands-on-Supervised-Machine.../build_tools/travis/test_script.sh

18 lines
234 B
Bash

#!/bin/bash
set -e
run_tests() {
oldpwd=`pwd`
# Move to another directory to test
cd ..
mkdir -p ${TEST_DIR} && cd ${TEST_DIR}
pytest --cov packtml
# move back to original dir
cd ${oldpwd}
}
run_tests