mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-13 01:57:03 +01:00
23 lines
844 B
YAML
23 lines
844 B
YAML
language: python
|
|
python:
|
|
- "3.5"
|
|
- "3.6"
|
|
- "3.7-dev"
|
|
sudo: required
|
|
services: docker
|
|
before_install:
|
|
- docker pull postgres:9.5-alpine
|
|
- docker run -d --name dspacestatistics -p 127.0.0.1:5432:5432 postgres:9.5-alpine
|
|
- docker ps -a
|
|
- docker exec dspacestatistics createuser -U postgres dspacestatistics
|
|
- docker exec dspacestatistics psql -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
- docker exec dspacestatistics createdb -U postgres -O dspacestatistics --encoding=UNICODE dspacestatistics
|
|
- docker cp tests/dspacestatistics.sql dspacestatistics:/tmp
|
|
- docker exec dspacestatistics sh -c 'psql -U postgres -d dspacestatistics < /tmp/dspacestatistics.sql'
|
|
install:
|
|
- "pip install pipenv --upgrade-strategy=only-if-needed"
|
|
- "pipenv install --dev"
|
|
script: pytest
|
|
|
|
# vim: ts=2 sw=2 et
|