mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
chore: clean up tox, remove travis, add recommended files
This commit is contained in:
parent
9849f8356d
commit
cae35d1032
4 changed files with 26 additions and 54 deletions
17
.editorconfig
Normal file
17
.editorconfig
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Check http://editorconfig.org for more information
|
||||
# This is the main config file for this project:
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
indent_size = 2
|
||||
|
||||
[*.py]
|
||||
indent_size = 4
|
||||
|
||||
[*.pyi]
|
||||
indent_size = 4
|
||||
30
.travis.yml
30
.travis.yml
|
|
@ -1,30 +0,0 @@
|
|||
language: python
|
||||
matrix:
|
||||
include:
|
||||
- python: 3.6
|
||||
env: TOXENV=py36-django31
|
||||
- python: 3.6
|
||||
env: TOXENV=py36-django32
|
||||
- python: 3.7
|
||||
env: TOXENV=py37-django31
|
||||
- python: 3.7
|
||||
env: TOXENV=py37-django32
|
||||
- python: 3.8
|
||||
env: TOXENV=py38-django31
|
||||
- python: 3.8
|
||||
env: TOXENV=py38-django32
|
||||
- python: 3.9
|
||||
env: TOXENV=py39-django31
|
||||
- python: 3.9
|
||||
env: TOXENV=py39-django32
|
||||
install:
|
||||
- pip install Django>=3.1
|
||||
- pip install coveralls==1.3.0
|
||||
- pip install coverage==4.5.1
|
||||
- pip install tox-travis==0.10
|
||||
before_script:
|
||||
- coverage erase
|
||||
script:
|
||||
- coverage run --source=eav runtests; tox
|
||||
after_success:
|
||||
- COVERALLS_REPO_TOKEN=71NkMDQFpFKB9QYXoK12LYuWUEmQ2wD6V coveralls
|
||||
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
33
tox.ini
33
tox.ini
|
|
@ -1,32 +1,17 @@
|
|||
[tox]
|
||||
isolated_build = true
|
||||
envlist =
|
||||
py36-django{31,32,tip},
|
||||
py37-django{31,32,tip},
|
||||
py38-django{31,32,tip}
|
||||
py39-django{31,32,tip}
|
||||
migrationscheck
|
||||
py{35,36,37,38,39}-django22
|
||||
py{36,37,38,39}-django{30,31,32,tip}
|
||||
|
||||
[testenv]
|
||||
pip_pre=True
|
||||
|
||||
locked_deps =
|
||||
pytest
|
||||
pytest-cov
|
||||
deps =
|
||||
django22: django>=2.2,<2.3
|
||||
django31: Django >= 3.1, <3.2
|
||||
django32: Django >= 3.2
|
||||
djangotip: https://github.com/django/django/archive/refs/heads/main.tar.gz
|
||||
|
||||
commands =
|
||||
./runtests
|
||||
|
||||
[testenv:migrationscheck]
|
||||
pip_pre=True
|
||||
|
||||
deps =
|
||||
Django
|
||||
|
||||
setenv =
|
||||
DJANGO_SETTINGS_MODULE=tests.test_settings
|
||||
|
||||
# make test fail if missing migrations
|
||||
commands =
|
||||
django-admin makemigrations --check --dry-run
|
||||
|
||||
commands = pytest --cov {envsitepackagesdir}/eav --import-mode=importlib
|
||||
whitelist_externals = pytest
|
||||
|
|
|
|||
Loading…
Reference in a new issue