2020-12-14 12:37:43 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python39
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: setup
|
|
|
|
image: postgres:10-alpine
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: postgres
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- psql --version
|
|
|
|
- sleep 5
|
|
|
|
- pg_isready -h database -U postgres -d dspacestatistics
|
|
|
|
- createuser -h database -U postgres dspacestatistics
|
|
|
|
- psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
|
|
- psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: python:3.9-slim
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: dspacestatistics
|
|
|
|
DATABASE_HOST: database
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
2020-12-14 21:50:21 +01:00
|
|
|
- apt update && apt install -y gcc
|
2020-12-14 12:37:43 +01:00
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: database
|
|
|
|
image: postgres:10-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python38
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: database
|
|
|
|
image: postgres:10-alpine
|
|
|
|
detach: true
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
image: postgres:10-alpine
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: postgres
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- psql --version
|
|
|
|
- sleep 5
|
|
|
|
- pg_isready -h database -U postgres -d dspacestatistics
|
|
|
|
- createuser -h database -U postgres dspacestatistics
|
|
|
|
- psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
|
|
- psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: python:3.8-slim
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: dspacestatistics
|
|
|
|
DATABASE_HOST: database
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python37
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: database
|
|
|
|
image: postgres:10-alpine
|
|
|
|
detach: true
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
image: postgres:10-alpine
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: postgres
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- psql --version
|
|
|
|
- sleep 5
|
|
|
|
- pg_isready -h database -U postgres -d dspacestatistics
|
|
|
|
- createuser -h database -U postgres dspacestatistics
|
|
|
|
- psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
|
|
- psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: python:3.7-slim
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: dspacestatistics
|
|
|
|
DATABASE_HOST: database
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python36
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: database
|
|
|
|
image: postgres:10-alpine
|
|
|
|
detach: true
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
image: postgres:10-alpine
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: postgres
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- psql --version
|
|
|
|
- sleep 5
|
|
|
|
- pg_isready -h database -U postgres -d dspacestatistics
|
|
|
|
- createuser -h database -U postgres dspacestatistics
|
|
|
|
- psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
|
|
- psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: python:3.6-slim
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: dspacestatistics
|
|
|
|
DATABASE_HOST: database
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et
|