mirror of
https://github.com/NaN-tic/trytond-galatea_cms.git
synced 2023-12-14 04:32:53 +01:00
39 lines
872 B
YAML
39 lines
872 B
YAML
clone:
|
|
hg:
|
|
image: plugins/hg
|
|
|
|
pipeline:
|
|
tox:
|
|
image: ${IMAGE}
|
|
environment:
|
|
- CFLAGS=-O0
|
|
- DB_CACHE=/cache
|
|
- TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
|
|
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
|
|
commands:
|
|
- pip install tox
|
|
- tox -e "${TOXENV}-${DATABASE}"
|
|
notify:
|
|
image: drillster/drone-email
|
|
from: drone@localhost
|
|
host: smtp
|
|
port: 25
|
|
skip_verify: true
|
|
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
|