2020-12-14 12:37:43 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2021-11-09 16:36:48 +01:00
|
|
|
name: python310
|
2021-10-11 19:11:32 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: setup
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2021-10-11 19:11:32 +02:00
|
|
|
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.10-slim
|
|
|
|
environment:
|
|
|
|
PGPASSWORD: dspacestatistics
|
|
|
|
DATABASE_HOST: database
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
|
|
|
- apt update && apt install -y gcc git libpq-dev
|
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: database
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2021-10-11 19:11:32 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-12-14 12:37:43 +01:00
|
|
|
name: python39
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: setup
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2020-12-14 12:37:43 +01:00
|
|
|
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
|
2021-07-06 15:41:17 +02:00
|
|
|
- apt update && apt install -y gcc git libpq-dev
|
2020-12-14 12:37:43 +01:00
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: database
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2020-12-14 12:37:43 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python38
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: database
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2020-12-14 12:37:43 +01:00
|
|
|
detach: true
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dspacestatistics
|
|
|
|
|
|
|
|
- name: setup
|
2023-05-30 10:01:58 +02:00
|
|
|
image: postgres:15-alpine
|
2020-12-14 12:37:43 +01:00
|
|
|
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
|
2021-07-06 15:44:13 +02:00
|
|
|
- apt update && apt install -y gcc git libpq-dev
|
2020-12-14 12:37:43 +01:00
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et
|