mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_available
synced 2023-12-14 06:03:11 +01:00
41 lines
No EOL
1,021 B
YAML
41 lines
No EOL
1,021 B
YAML
pipeline:
|
|
tox:
|
|
image: ${IMAGE}
|
|
environment:
|
|
- CFLAGS=-O0
|
|
- TOX_TESTENV_PASSENV=CFLAGS
|
|
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
|
|
commands:
|
|
- pip install tox
|
|
- 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
|
|
when:
|
|
matrix:
|
|
DATABASE: postgresql
|
|
|
|
matrix:
|
|
include:
|
|
- IMAGE: python:3.6
|
|
TOXENV: py36
|
|
DATABASE: sqlite
|
|
- IMAGE: python:3.6
|
|
TOXENV: py36
|
|
DATABASE: postgresql
|
|
- IMAGE: python:3.7
|
|
TOXENV: py37
|
|
DATABASE: sqlite
|
|
- IMAGE: python:3.7
|
|
TOXENV: py37
|
|
DATABASE: postgresql |