2018-09-25 10:08:01 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.5"
|
|
|
|
- "3.6"
|
2018-10-14 17:57:30 +02:00
|
|
|
- "3.7-dev"
|
2018-11-11 15:13:30 +01:00
|
|
|
sudo: required
|
|
|
|
services: docker
|
|
|
|
before_install:
|
|
|
|
- docker pull postgres:9.5-alpine
|
2018-11-11 15:28:18 +01:00
|
|
|
- docker run -d --name dspacestatistics -p 127.0.0.1:5432:5432 postgres:9.5-alpine
|
2018-11-11 15:13:30 +01:00
|
|
|
- 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
|
2018-09-25 10:08:01 +02:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et
|