mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-24 07:10:17 +01:00
Alan Orth
586231eb2d
Default PostgreSQL in Travis CI is 9.2 which is very old, so let's try to use 9.5. See: https://docs.travis-ci.com/user/database-setup/#postgresql
20 lines
534 B
YAML
20 lines
534 B
YAML
language: python
|
|
python:
|
|
- "3.5"
|
|
- "3.6"
|
|
- "3.7-dev"
|
|
addons:
|
|
postgresql: "9.5"
|
|
before_script:
|
|
- psql --version
|
|
- createuser -U postgres dspacestatistics
|
|
- psql -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"
|
|
- createdb -U postgres -O dspacestatistics --encoding=UNICODE dspacestatistics
|
|
- psql -U postgres -d dspacestatistics < tests/dspacestatistics.sql
|
|
install:
|
|
- "pip install pipenv --upgrade-strategy=only-if-needed"
|
|
- "pipenv install --dev"
|
|
script: pytest
|
|
|
|
# vim: ts=2 sw=2 et
|