kopia lustrzana https://github.com/glidernet/ogn-python
Change nose to pytest
rodzic
dedffb88e2
commit
fc608cd6c8
36
.travis.yml
36
.travis.yml
|
@ -1,26 +1,30 @@
|
||||||
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
install:
|
||||||
- 3.5
|
- pip install tox
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
- 3.8-dev
|
|
||||||
|
|
||||||
addons:
|
|
||||||
postgresql: "9.6"
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- postgresql-9.6-postgis-2.4
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- flake8 tests ogn_test
|
|
||||||
- psql -U postgres -c 'CREATE DATABASE ogn_test;'
|
- psql -U postgres -c 'CREATE DATABASE ogn_test;'
|
||||||
- psql -U postgres -c 'CREATE EXTENSION postgis;'
|
- psql -U postgres -c 'CREATE EXTENSION postgis;'
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nosetests --with-coverage --cover-package=app
|
- tox
|
||||||
- pip install . --upgrade
|
|
||||||
- python -c 'import app'
|
addons:
|
||||||
|
postgresql: 9.6
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- postgresql-9.6-postgis-2.4
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- python: "3.6"
|
||||||
|
env: TOXENV='py36'
|
||||||
|
- python: "3.7"
|
||||||
|
env: TOXENV='py37'
|
||||||
|
- python: "3.7"
|
||||||
|
env: TOXENV='flake8'
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- tox -e codecov
|
||||||
|
|
13
setup.py
13
setup.py
|
@ -51,13 +51,10 @@ setup(
|
||||||
'tqdm==4.36.1',
|
'tqdm==4.36.1',
|
||||||
'requests==2.22.0',
|
'requests==2.22.0',
|
||||||
],
|
],
|
||||||
extras_require={
|
test_require=[
|
||||||
'dev': [
|
'pytest==5.0.1',
|
||||||
'nose==1.3.7',
|
'flake8==1.1.1',
|
||||||
'coveralls==1.8.2',
|
'xmlunittest==0.4.0',
|
||||||
'flake8==3.7.8',
|
],
|
||||||
'xmlunittest==0.4.0'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
zip_safe=False
|
zip_safe=False
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
[tox]
|
||||||
|
envlist = py36,py37,flake8
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
setenv = OGN_CONFIG_MODULE = 'config/test.py'
|
||||||
|
deps = pytest
|
||||||
|
|
||||||
|
commands =
|
||||||
|
pytest
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
deps =
|
||||||
|
flake8
|
||||||
|
|
||||||
|
commands =
|
||||||
|
flake8 app tests
|
Ładowanie…
Reference in New Issue