mirror of
https://gitlab.com/datalifeit/trytond-staff_workplace
synced 2023-12-14 04:42:58 +01:00
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
clone:
|
|
hg:
|
|
image: plugins/hg
|
|
|
|
pipeline:
|
|
tox:
|
|
image: ${IMAGE}
|
|
environment:
|
|
- CFLAGS=-O0
|
|
- TOX_TESTENV_PASSENV=CFLAGS
|
|
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
|
|
commands:
|
|
- python tests/netrc2hgrc.py
|
|
- 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 ]
|
|
|
|
services:
|
|
postgresql:
|
|
image: postgres
|
|
when:
|
|
matrix:
|
|
DATABASE: postgresql
|
|
|
|
matrix:
|
|
include:
|
|
- IMAGE: python:2.7
|
|
TOXENV: py27
|
|
DATABASE: sqlite
|
|
- IMAGE: python:2.7
|
|
TOXENV: py27
|
|
DATABASE: postgresql
|
|
- IMAGE: python:3.4
|
|
TOXENV: py34
|
|
DATABASE: sqlite
|
|
- IMAGE: python:3.4
|
|
TOXENV: py34
|
|
DATABASE: postgresql
|
|
- IMAGE: python:3.5
|
|
TOXENV: py35
|
|
DATABASE: sqlite
|
|
- IMAGE: python:3.5
|
|
TOXENV: py35
|
|
DATABASE: postgresql
|
|
- IMAGE: python:3.6
|
|
TOXENV: py36
|
|
DATABASE: sqlite
|
|
- IMAGE: python:3.6
|
|
TOXENV: py36
|
|
DATABASE: postgresql
|