File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ script:
23
23
# Run tests
24
24
- PYTHONPATH=. nosetests -s -v --with-doctest --with-cov --cover-package . --logging-level=INFO -v .
25
25
# Actually run all the scripts, contributing to coverage
26
- - bash -c 'failed=""; for f in [^_]*py; do python `which coverage` run -a $f || failed+=" $f"; echo "I : done $f. Exit code $?"; done; [ -z "$failed" ] || { echo "Failed: $failed"; exit 1; }'
26
+ - ./run_all.sh
27
27
# for now failure in flaking is ignored
28
28
- flake8 *py || echo "PEP8 the code"
29
29
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Little helper to run all the scripts, under python coverage if coverage is available
4
+ #
5
+
6
+ set -eu
7
+ failed=" "
8
+
9
+ if which coverage > /dev/null; then
10
+ COVERAGE=" ` which coverage` run -a"
11
+ else
12
+ COVERAGE=' '
13
+ fi
14
+ for f in [^_]* py; do
15
+ python $COVERAGE $f || failed+=" $f "
16
+ echo " I: done $f . Exit code $? "
17
+ done ;
18
+
19
+ if [ ! -z " $failed " ]; then
20
+ echo " Failed: $failed " ;
21
+ exit 1
22
+ fi
You can’t perform that action at this time.
0 commit comments