Skip to content

Commit

Permalink
Add CI related files
Browse files Browse the repository at this point in the history
  • Loading branch information
balasankarc committed Sep 4, 2017
1 parent 7090197 commit cadf313
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 27 deletions.
78 changes: 67 additions & 11 deletions .gitignore
@@ -1,19 +1,75 @@
*.py[co]
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
develop-eggs
# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.tox
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints
*.swp

# Specific
*.session
sandbox/
/cover/
/.testrepository/

*.bak
virtualenvs/

bin/
web/
4 changes: 4 additions & 0 deletions .testr.conf
@@ -0,0 +1,4 @@
[DEFAULT]
test_command=${PYTHON:-python} -m subunit.run discover libindic $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list
12 changes: 6 additions & 6 deletions .travis.yml
@@ -1,12 +1,12 @@
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "pypy"
- "3.3"
install:
- pip install -r requirements.txt
- pip install flake8
- pip install coveralls
- pip install -r test-requirements.txt
script: make travis
after_success: coveralls
notifications:
Expand All @@ -15,6 +15,6 @@ notifications:
irc:
channels:
- 'irc.freenode.net#silpa'
on_success: change
on_failure: change
use_notice: true
on_success: #silpa
on_failure: #silpa
use_notice: true
16 changes: 6 additions & 10 deletions Makefile
@@ -1,13 +1,9 @@
travis:
nosetests -s --with-coverage --cover-package=soundex
flake8 soundex
python setup.py test --coverage \
--coverage-package-name=soundex
flake8 --max-complexity 10 --ignore F401 libindic/soundex

clean:
find . -name "*.pyc" -exec rm -vf {} \;
find -name __pycache__ -delete

tox:
tox

flake:
flake8 silpa tests
find . -iname "*.pyc" -exec rm -vf {} \;
find . -iname "__pycache__" -delete
sudo rm -rf build dist *egg* .tox .coverage .testrepository
4 changes: 4 additions & 0 deletions circle.yml
@@ -0,0 +1,4 @@
dependencies:
override:
- pip install tox tox-pyenv
- pyenv local 2.7.10 3.4.3 3.5.0
20 changes: 20 additions & 0 deletions tox.ini
@@ -0,0 +1,20 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py35, py27, pep8

[testenv]
commands = {envpython} setup.py test
deps =
-rrequirements.txt
-rtest-requirements.txt

[testenv:pep8]
deps=
-rrequirements.txt
-rtest-requirements.txt
commands=
flake8 libindic

0 comments on commit cadf313

Please sign in to comment.