Skip to content

Commit dd2de67

Browse files
committed
Stuff for continues integration tests
1 parent c271e19 commit dd2de67

File tree

6 files changed

+92
-2
lines changed

6 files changed

+92
-2
lines changed

.appveyor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
environment:
2+
matrix:
3+
- PYTHON: "C:\\Python35"
4+
PYTHON_ARCH: "32"
5+
- PYTHON: "C:\\Python35-x64"
6+
PYTHON_ARCH: "64"
7+
- PYTHON: "C:\\Python36"
8+
PYTHON_ARCH: "32"
9+
- PYTHON: "C:\\Python36-x64"
10+
PYTHON_ARCH: "64"
11+
12+
build: off
13+
14+
install:
15+
- "%PYTHON%\\python.exe -m pip install .[testing]"
16+
17+
test_script:
18+
- "%PYTHON%\\python.exe -m pytest tests/ -m \"not network\""

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
exclude_lines =
6+
pragma: no cover
7+
raise NotImplementedError

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: python
2+
3+
sudo: false
4+
5+
python: 3.6
6+
7+
addons:
8+
apt:
9+
packages:
10+
- libffi-dev
11+
12+
install:
13+
- pip install tox
14+
15+
env:
16+
- TOXENV=py36
17+
- TOXENV=quality
18+
- TOXENV=docs
19+
20+
# Everything behaves under python 3.6 except python3.5
21+
matrix:
22+
include:
23+
- python: 3.5
24+
env: TOXENV=py35
25+
26+
script:
27+
- tox -e $TOXENV
28+
29+
notifications:
30+
email: false

pylama.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pylama:pycodestyle]
2+
max_line_length = 120
3+
4+
[pylama:mccabe]
5+
complexity = 40

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"Development Status :: 4 - Beta",
4040
"License :: OSI Approved :: Apache Software License",
4141
"Topic :: Software Development :: Libraries :: Python Modules",
42-
"Programming Language :: Python :: 2.7",
4342
"Programming Language :: Python :: 3.5"
43+
"Programming Language :: Python :: 3.6"
4444
],
45-
install_requires=["cryptography", "requests", "six", "future"],
45+
install_requires=["cryptography", "requests"],
4646
tests_require=['pytest'],
4747
zip_safe=False,
4848
scripts=glob.glob('script/*.py'),

tox.ini

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[tox]
2+
envlist = py{35,36},docs,quality
3+
4+
[testenv]
5+
passenv = CI TRAVIS TRAVIS_*
6+
commands =
7+
py.test --cov-report= --cov=oic tests/ -m "not network" {posargs}
8+
codecov
9+
extras = testing
10+
deps =
11+
codecov
12+
pytest-cov
13+
14+
[testenv:docs]
15+
whitelist_externals = make
16+
extras = docs
17+
commands = sphinx-build -b html doc/ doc/_build/html -W
18+
19+
[testenv:quality]
20+
whitelist_externals = make
21+
extras = quality
22+
commands =
23+
isort --recursive --diff --check-only src/ tests/
24+
pylama src/ tests/
25+
26+
[pep8]
27+
max-line-length=100
28+
29+
[pytest]
30+
addopts = --color=yes

0 commit comments

Comments
 (0)