Browse Source

Added travis and coveralls config

main
nibrag 8 years ago
parent
commit
da8dffb3a2
3 changed files with 49 additions and 0 deletions
  1. +1
    -0
      .coverage
  2. +7
    -0
      .coveragerc
  3. +41
    -0
      .travis.yml

+ 1
- 0
.coverage View File

@@ -0,0 +1 @@
!coverage.py: This is a private format, don't read it directly!{"lines": {"C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\protocols.py": [1, 2, 3, 4, 5, 8, 11, 12, 13, 14, 15, 18, 19, 20, 21, 23, 24, 25, 27, 29, 31, 38, 42, 43, 45, 46, 47, 48, 49, 51, 53, 55, 59, 69, 73, 74, 75, 77, 78, 80, 81, 83, 85, 88, 89, 90, 92, 93, 94, 95, 96, 97, 100, 101, 104, 105, 106, 107, 109, 112, 114, 115, 116, 117, 118, 120, 121, 124, 125, 126, 128, 129, 131, 132, 134, 136, 138, 141, 142, 143, 146, 148, 149, 150, 152, 153, 154, 156, 158, 160, 163, 164, 165, 169, 172, 174, 175, 176, 179, 180, 181, 182, 184, 185, 186, 187, 189, 190, 191, 194, 195, 196, 197, 200, 201, 204, 206, 207, 208, 212, 213, 214, 215, 216, 217, 218, 219, 222, 223, 224, 225, 227, 228, 229, 230, 232, 233, 235, 237, 239, 240, 241, 242, 243, 244, 245, 246, 250, 251, 253], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\errors.py": [1, 2, 5, 6, 9, 10, 13, 14, 17, 18, 21, 22], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\constants.py": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 17, 20, 21, 23, 28, 29, 30, 31, 32, 33, 34, 35], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\__init__.py": [64, 1, 2, 3, 4, 69, 6, 65, 72, 76, 74, 75, 12, 77, 15, 17, 18, 19, 20, 24, 68, 79, 29, 33, 70, 39, 40, 71, 45, 47, 57, 58, 59, 60, 61, 62, 63], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\test.py": [], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\helpers.py": [1, 3, 6, 7, 8, 11, 14, 15, 16, 19, 22, 23, 24, 27, 28, 29, 32, 35, 38, 39, 42, 43], "C:\\Users\\int\\PyCharmProjects\\aiosocks\\aiosocks\\connector.py": [1, 2, 3, 4, 5, 6, 7, 9, 12, 13, 14, 16, 17, 18, 20, 27, 34, 36, 37, 38, 40, 41, 46, 47, 48, 49, 50, 56, 57, 58, 60, 61, 62, 63, 65, 66, 67, 68, 69, 71, 72, 73, 75, 76, 77, 78]}}

+ 7
- 0
.coveragerc View File

@@ -0,0 +1,7 @@
[run]
branch = True
source = aiosocks, tests
omit = site-packages

[html]
directory = coverage

+ 41
- 0
.travis.yml View File

@@ -0,0 +1,41 @@
sudo: no
language: python

python:
- 3.4
- 3.5

os:
- linux

cache:
directories:
- $HOME/.cache/pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

install:
- pip install --upgrade pip wheel
- pip install --upgrade setuptools
- pip install pip
- pip install flake8
- pip install pyflakes==1.1.0
- pip install coverage
- pip install pytest
- pip install pytest-cov
- pip install aiodns
- pip install aiohttp
- pip install coveralls

script:
- cd $TRAVIS_BUILD_DIR
- flake8 aiosocks tests
- python setup.py develop && py.test --cov=aiosocks tests
- python setup.py check -rm
- if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then
python setup.py check -s;
fi

after_success:
coveralls

Loading…
Cancel
Save