Skip to content

Commit 0130958

Browse files
committed
Add travis and coveralls config file
1 parent f09d4ee commit 0130958

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.coveragerc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit = tests/*
3+
source = windpowerlib

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: python
2+
3+
matrix:
4+
include:
5+
- python: 3.5
6+
- python: 3.6
7+
- python: 3.7
8+
dist: xenial
9+
sudo: true
10+
11+
# command to install dependencies
12+
#before_install:
13+
# - sudo apt-get install coinor-cbc
14+
15+
install:
16+
- pip install .
17+
- pip install coveralls, sphinx, nbformat, pytest-cov
18+
19+
# command to run tests
20+
script:
21+
- pytest --cov=windpowerlib --cov-config .coveragerc
22+
23+
after_success:
24+
- coveralls

0 commit comments

Comments
 (0)