-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·36 lines (29 loc) · 855 Bytes
/
ci.sh
File metadata and controls
executable file
·36 lines (29 loc) · 855 Bytes
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
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -ex
export QHOME="/root/q"
echo "* Installing PyQ"
python setup.py install_exe
python setup.py install_qlib
python setup.py install_qext
python setup.py install_scripts
LDFLAGS='--coverage -lgcov'
CFLAGS='--coverage'
export CFLAGS LDFLAGS
python setup.py install_lib
unset CFLAGS LDFLAGS
pyq --versions
echo "* Running tests"
pyq -mpytest --pyargs pyq
taskset -c "$CPUS" "${QHOME}/l${BITS}/q" src/pyq/tests/test.p
echo "* Running lcov"
gcov_path="$(find . -type f -name "*.gcno" -o -name "*.gcda" -exec dirname {} \; -quit)"
lcov --capture \
--directory "${gcov_path}" \
--output-file pyq.info \
--rc lcov_branch_coverage=1 \
--base-directory $(pwd)/src/pyq \
--no-external \
--derive-func-data
ls -la ${gcov_path}/*{gcno,gcda}
gcov -f -b -c -o "${gcov_path}" src/pyq/_k.c
find . -name \*gcov