Skip to content

Commit b2a5a20

Browse files
committed
Travis and CodeCov files
1 parent 57f930c commit b2a5a20

File tree

6 files changed

+96
-0
lines changed

6 files changed

+96
-0
lines changed

.codecov.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
parsers:
16+
gcov:
17+
branch_detection:
18+
conditional: yes
19+
loop: yes
20+
method: no
21+
macro: no
22+
23+
comment:
24+
layout: "header, diff"
25+
behavior: default
26+
require_changes: no

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
# *.c text
7+
# *.h text
8+
9+
# Declare files that will always have CRLF line endings on checkout.
10+
*.py text eol=crlf
11+
12+
# Denote all files that are truly binary and should not be modified.
13+
*.png binary
14+
*.jpg binary
15+
*.icns binary
16+
*.ico binary
17+
*.db binary

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: python
2+
python:
3+
- '2.7'
4+
env:
5+
- TOXENV=pep8
6+
addons:
7+
apt:
8+
packages:
9+
# for wxPython:
10+
- python-wxgtk2.8
11+
- python-wxtools
12+
- wx2.8-doc
13+
- wx2.8-examples
14+
- wx2.8-headers
15+
- wx2.8-i18n
16+
before_install:
17+
- pip install -U tox
18+
install:
19+
- pip install -r requirements.txt
20+
- pip install -r requirements_test.txt
21+
script:
22+
- tox
23+
- py.test --cov=./
24+
after_success:
25+
- bash <(curl -s https://codecov.io/bash)

requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
matplotlib
2+
PyYAML
3+
python-dateutil
4+
urllib3
5+
requests==2.11.1
6+
sqlalchemy

requirements_test.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pytest==3.0.3
2+
pytest-mock==1.2
3+
pytest-cov==2.3.1
4+
pytest-capturelog==0.7
5+
coverage==4.2
6+
coveralls==1.1
7+
codecov

tox.ini

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tox]
2+
envlist = pep8
3+
skipsdist = True
4+
5+
[testenv]
6+
passenv = CI TRAVIS TRAVIS_*
7+
deps =
8+
-rrequirements.txt
9+
-rrequirements_test.txt
10+
basepython = python2.7
11+
commands = py.test -vv --cov Pyfa tests/
12+
13+
[testenv:pep8]
14+
deps = flake8
15+
commands = flake8 --exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,venv,tests,.tox,build,dist,__init__.py --ignore=E501,E731 gui_service gui eos utils config.py pyfa.py

0 commit comments

Comments
 (0)