Migrate to 6.0

This commit is contained in:
Sergio Morillo 2021-10-08 17:42:35 +02:00
parent 760da62ea5
commit 54236c763c
4 changed files with 52 additions and 4 deletions

View File

@ -37,6 +37,54 @@ volumes:
path: /var/lib/cache
---
kind: pipeline
name: py36-postgresql
steps:
- name: tox
image: python:3.6
pull: if-not-exists
environment:
CFLAGS: -O0
DB_CACHE: /cache
TOX_TESTENV_PASSENV: CFLAGS DB_CACHE
POSTGRESQL_URI: postgresql://postgres@postgresql:5432/
commands:
- pip install tox
- tox -e "py36-postgresql"
volumes:
- name: cache
path: /root/.cache
- name: notify
image: drillster/drone-email
pull: if-not-exists
settings:
from: drone@datalifeit.es
skip_verify: true
host:
from_secret: email_host
port:
from_secret: email_port
when:
status:
- changed
- failure
services:
- name: postgresql
image: postgres
pull: if-not-exists
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- name: cache
host:
path: /var/lib/cache
---
kind: pipeline
name: py37-postgresql

View File

@ -104,5 +104,4 @@ setup(name='%s_%s' % (PREFIX, MODULE),
test_suite='tests',
test_loader='trytond.test_loader:Loader',
tests_require=tests_require,
use_2to3=True,
)

View File

@ -1,11 +1,12 @@
[tox]
envlist = {py37,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
envlist = {py36,py37,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands = {envpython} setup.py test
deps =
{py37,py38}-postgresql: psycopg2 >= 2.5
{py36,py37,py38}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
{py36}-sqlite: sqlitebck
setenv =
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}

View File

@ -1,5 +1,5 @@
[tryton]
version=5.1.0
version=5.0.0
depends:
stock_lot
extras_depend: