mirror of
https://github.com/tryton-ar/sale_payment_collect.git
synced 2023-12-14 08:12:53 +01:00
28 lines
658 B
YAML
28 lines
658 B
YAML
before_script:
|
|
- apt-get update -yqq
|
|
- apt-get install swig -yqq
|
|
- apt-get install libssl-dev -yqq
|
|
- apt-get install python3-dev -yqq
|
|
- sed -i 's#ssh://git@gitlab.com#https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com#g' setup.py
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
- deploy
|
|
|
|
test:py37-postgresql:
|
|
stage: test
|
|
image: python:3.7
|
|
tags:
|
|
- postgres
|
|
services:
|
|
- postgres
|
|
variables:
|
|
CFLAGS: "-O0"
|
|
DB_CACHE: "~/cache"
|
|
TOX_TESTENV_PASSENV: "CFLAGS DB_CACHE"
|
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
|
POSTGRESQL_URI: "postgresql://postgres:@postgres:5432/"
|
|
script:
|
|
- pip install tox
|
|
- tox -e py37-postgresql
|