Skip to content

Commit

Permalink
Setting up travix and pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Apr 15, 2019
1 parent 701b7dd commit 7ce90b5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch

services: postgresql

before_install:
- export DATABASE_URL=postgres://postgres@localhost:5432/travisci
# command to install dependencies
install:
- pip install -r requirements/local.txt
# command to run tests
script:
- python manage.py test
7 changes: 7 additions & 0 deletions config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@

# Your stuff...
# ------------------------------------------------------------------------------
IIIF_IMAGE_SERVER_BASE = 'https://loris.library.emory.edu'

HOSTNAME = 'https://readux-dev.org:3000'

DATASTREAM_PREFIX = 'http://repo.library.emory.edu/fedora/objects/'
DATASTREAM_SUFFIX = '/datastreams/position/content'
HTTP_REQUEST_TIMEOUT = 5
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[pytest]
DJANGO_SETTINGS_MODULE=config.settings.test
norecursedirs = node_modules
python_files = tests.py test_*.py *_tests.py

0 comments on commit 7ce90b5

Please sign in to comment.