"Define image policy in drone.yml [SKIP CI]."

This commit is contained in:
Sergio Morillo 2021-01-20 00:40:42 +01:00
parent 7b523d1ee6
commit 921ee9dcec
3 changed files with 55 additions and 11 deletions

View file

@ -11,10 +11,18 @@ pipeline:
- tox -e "${TOXENV}-${DATABASE}"
volumes:
- /var/lib/cache:/root/.cache
notify:
image: drillster/drone-email
from: drone@datalifeit.es
skip_verify: true
secrets: [ email_host, email_port ]
when:
status: [ changed, failure ]
services:
postgresql:
image: postgres
image: postgres:12
pull: if-not-exists
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
when:
@ -23,12 +31,6 @@ services:
matrix:
include:
- IMAGE: python:3.5
TOXENV: py35
DATABASE: sqlite
- IMAGE: python:3.5
TOXENV: py35
DATABASE: postgresql
- IMAGE: python:3.6
TOXENV: py36
DATABASE: sqlite
@ -41,3 +43,9 @@ matrix:
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql
- IMAGE: python:3.8
TOXENV: py38
DATABASE: sqlite
- IMAGE: python:3.8
TOXENV: py38
DATABASE: postgresql

View file

@ -45,6 +45,42 @@ if minor_version % 2:
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], name, version))
<<<<<<< HEAD
=======
series = '%s.%s' % (major_version, minor_version)
if minor_version % 2:
branch = 'default'
else:
branch = series
dependency_links = {
'stock_secondary_unit':
'git+https://gitlab.com/datalifeit/'
'trytond-stock_secondary_unit@%(branch)s'
'#egg=trytond_stock_secondary_unit' % {
'branch': branch,
},
'account_invoice_secondary_unit':
'git+https://gitlab.com/datalifeit/'
'trytond-account_invoice_secondary_unit@%(branch)s'
'#egg=trytond_account_invoice_secondary_unit' % {
'branch': branch,
},
'sale_product_customer':
'git+https://gitlab.com/datalifeit/'
'trytond-sale_product_customer@%(branch)s'
'#egg=trytond_sale_product_customer' % {
'branch': branch,
},
'product':
'git+https://gitlab.com/datalifeit/'
'trytond-product@%(branch)s'
'#egg=trytond_product' % {
'branch': branch,
},
}
>>>>>>> 8165f3a... "Fix egg on dependency links [SKIP CI]."
requires = []
for dep in info.get('depends', []):
if not re.match(r'(ir|res)(\W|$)', dep):

View file

@ -1,15 +1,15 @@
[tox]
envlist = {py35,py36,py37}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
envlist = {py36,py37,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands = {envpython} setup.py test
deps =
{py35,py36,py37}-postgresql: psycopg2 >= 2.5
{py36,py37,py38}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
{py35,py36}-sqlite: sqlitebck
{py36}-sqlite: sqlitebck
setenv =
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
install_command = pip install --pre {opts} {packages}