forked from BinPy/BinPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_travis.sh
39 lines (34 loc) · 892 Bytes
/
test_travis.sh
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
37
38
39
#! /usr/bin/env bash
status_code=$?
function chk()
{
let "status_code=$status_code||$?";
}
# To make nosetests run under different python environments.
function nt()
{
python $(which nosetests) $1;
}
pep8 --exclude="build/*" --ignore=E501 ./; chk;
cd BinPy/tests/;
nt .; chk;
nt gates_tests.py; chk;
nt combinational_tests.py; chk;
nt operations_tests.py; chk;
nt sequential_tests.py; chk;
nt counters_tests.py; chk;
nt series_4000_tests.py; chk;
nt series_7400_tests.py; chk;
nt source_tests.py; chk;
nt sequential_ic_tests.py; chk;
nt registers_tests.py; chk;
nt tree_tests.py; chk;
nt print_tests.py; chk;
nt expr_tests.py; chk;
nt analog_devices_tests.py; chk;
nt analog_source_tests.py; chk;
nt test_makebooleanfunction.py; chk;
nt test_analog_converters_buffers.py; chk;
nt test_signal_generator.py; chk;
nosetests --with-coverage --cover-package=BinPy
exit $status_code;