trytond-sale_lot/.drone.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2018-06-22 12:18:33 +02:00
clone:
hg:
image: plugins/hg
pipeline:
tox:
image: ${IMAGE}
environment:
- CFLAGS=-O0
2018-07-27 09:35:03 +02:00
- DB_CACHE=/cache
- TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
2018-06-22 12:18:33 +02:00
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
commands:
- pip install tox
- tox -e "${TOXENV}-${DATABASE}"
volumes:
- cache:/root/.cache
notify:
image: drillster/drone-email
from: drone@datalife.com.es
skip_verify: true
secrets: [ email_host, email_port ]
when:
status: [ changed, failure ]
2016-03-29 13:09:04 +02:00
services:
2018-06-22 12:18:33 +02:00
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
2019-02-26 11:03:18 +01:00
- IMAGE: python:3.7
TOXENV: py37
DATABASE: sqlite
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql