Skip to content

Commit 85c4875

Browse files
Merge pull request #16 from bt2901/adding_ci
Adding ci
2 parents 3f3ec0c + 99cbc2a commit 85c4875

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.travis.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
sudo: true
2-
3-
language:
4-
- python
5-
# Currently Travis doesn't support multiple values for language variable
6-
# - cpp
7-
8-
#compiler:
9-
# - gcc
10-
11-
# not sure whether the following configuration will be available
12-
# with non-C/C++ language (e.g python)
13-
#cache: ccache
1+
language: python
142

153
cache:
164
directories:
@@ -58,4 +46,8 @@ install:
5846

5947
script:
6048
- cd ../TopicNet/topicnet
61-
- py.test . --timeout=20
49+
- py.test . --timeout=20 --cov
50+
51+
after_success:
52+
- codecov
53+

requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ scipy
66
numexpr
77
pytest
88
pytest-timeout
9+
# coverage
10+
coverage
11+
pytest-cov
12+
codecov
13+
914
pandas
1015
tqdm
1116
dask

topicnet/.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
source=topicnet
3+
[report]
4+
omit=tests/

0 commit comments

Comments
 (0)