1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/bash
set -ev
# Script expects environment variables ${py} and ${test} to be set
case $test in
"sphinx")
$py -m sphinx -n -N -W -w sphinx.log docs/ tmp/
;;
"syntax")
./check_syntax
;;
"pylint")
# Normally rely on build script to create this file
echo "__version__ = pylint_testing" > ./lib/mrtrix3/_version.py
PYTHON=$py ./run_pylint
;;
"build")
$py ./configure -nooptim && $py ./build -nowarnings -persistent -nopaginate
;;
"run")
$py ./configure -assert && $py ./build -nowarnings -persistent -nopaginate && ./run_tests && ./docs/generate_user_docs.sh && git diff --exit-code docs/ > gitdiff.log
;;
*)
echo "Envvar \"test\" not defined";
exit 1
;;
esac
|