Debian Codegraph @

tests/pre-commit.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 here="$( cd "$( dirnamescip-shell system . . dirname. $(realpathscip-shell system . . realpath. "${BASH_SOURCE[0]}") )" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && pwdscip-shell system . . pwd. )"
4 root=$(realpathscip-shell system . . realpath. ${here}/..)
5
6 set -xeu
7
8 on_errorscip-shell shell discus 0.5.0-5 on_error().() {
9 exit_status=$?
10 echoscip-shell system . . echo. An error occurred
11 }
12
13 trap on_error ERR
14
15 export PYTHONPATH=${root}
16 # 1. runs of discus with all the possible options, to check for regressions
17 # 2. check the coding style
18 # 3. run the unittests
19 parallel -- "parallel ${root}/discus.py -- -h -c -d -s -t -g -m -k -v -r '-p 3'" \
20 "${root}/discus.py" \
21 "flake8 $(fiscip-shell system . . find.nd ${root} -name *.py)" \
22 "python3 -m unittest tests.unit_tests -v"