-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
64 lines (54 loc) · 1.84 KB
/
test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/bash
# -*- coding: utf-8 -*-
export PATH="$HOME/miniconda/bin:$PATH"
FAILURE=0
# Disable py.test cacheprovider because it requires r/w access to the test directory
#### Pre-tests
cd /home/travis/build/biologyguy/RD-MCL/rdmcl/tests
TEST_SCRIPTS='test_fixtures.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### Helper tests
TEST_SCRIPTS='test_helpers.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-append --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### MCMCMC tests
TEST_SCRIPTS='test_mcmcmc.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-append --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### Worker tests
TEST_SCRIPTS='test_worker.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-append --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### RD-MCL tests
TEST_SCRIPTS='test_rdmcl.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-append --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### Group by cluster tests
TEST_SCRIPTS='test_group_by_cluster.py '
py.test ${TEST_SCRIPTS} --cache-clear -p no:cacheprovider -p no:logging --cov --cov-append --cov-report= --cov-config ../.coveragerc --durations=10
if [ $? -ne 0 ]
then
FAILURE=1
fi
#### Move coverage report file
mv .coverage /home/travis/build/biologyguy/RD-MCL/
#### Run Coveralls
cd /home/travis/build/biologyguy/RD-MCL
coveralls --config_file=/home/travis/build/biologyguy/RD-MCL/rdmcl/.coveragerc
exit ${FAILURE}