From d612cde1b34fbcb4f980c1d10e2c533e54c5752d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 19 Aug 2017 09:16:45 +0200 Subject: [PATCH] Update to drone 0.8 issue6030 --- .drone.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index c4fd423e94..0c19db61aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,52 @@ -image: python:all -env: - - POSTGRESQL_URI=postgresql://postgres@127.0.0.1:5432/ - - MYSQL_URI=mysql://root@127.0.0.1:3306/ -script: - - pip install tox - - tox -e "{py27,py33,py34,py35}-{sqlite,postgresql}" --skip-missing-interpreters +clone: + hg: + image: plugins/hg + +pipeline: + tox: + image: ${IMAGE} + environment: + - CFLAGS=-O0 + - DB_CACHE=/cache + - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE UPS_USER_ID UPS_PASSWORD UPS_ACCOUNT_NUMBER UPS_LICENSE + - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/ + secrets: [ ups_user_id, ups_password, ups_account_number, ups_license ] + commands: + - pip install tox + - tox -e "${TOXENV}-${DATABASE}" + volumes: + - cache:/root/.cache + services: - - postgres + 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.3 + TOXENV: py33 + DATABASE: sqlite + - IMAGE: python:3.3 + TOXENV: py33 + 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