mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-25 23:58:18 +01:00
.drone.yml: Test on Python 3.10
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
5cdba6acb1
commit
562aaeef7d
39
.drone.yml
39
.drone.yml
@ -1,5 +1,44 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
name: python10
|
||||||
|
|
||||||
|
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.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
|
||||||
|
image: postgres:10-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: dspacestatistics
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: python39
|
name: python39
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user