-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Travis CI and a minimal test project to run tests
I also moved adyen/tests.py to tests/test_adyen.py.
- Loading branch information
Nicolas Dubois
committed
Apr 29, 2015
1 parent
3b0b452
commit eea6c95
Showing
6 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: python | ||
|
||
python: | ||
- "3.3" | ||
- "3.4" | ||
|
||
install: | ||
- pip install 'django-oscar>=0.7' | ||
- pip install -r requirements.txt | ||
|
||
env: | ||
- PYTHONPATH=.:$PYTHONPATH | ||
|
||
script: py.test tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE=tests.settings | ||
addopts = --pyargs --reuse-db | ||
|
||
; Imitate Django's test discovery pattern. py.test's default is test_*.py | ||
python_files=test*.py | ||
|
||
flakes-ignore = | ||
migrations/* ALL | ||
|
||
; new pep8 relaxed rules | ||
pep8maxlinelength = 100 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# """ | ||
# Django settings for tests project. | ||
# """ | ||
|
||
import os | ||
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | ||
|
||
SECRET_KEY = '+&l^d!%soa4gxsnx7_txbo0x3uv$@4i&n!r8yte72otwqo7vmh' | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | ||
} | ||
} | ||
|
||
OSCAR_DEFAULT_CURRENCY = 'EUR' | ||
|
||
MIDDLEWARE_CLASSES = ( | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
) | ||
|
||
INSTALLED_APPS = ('adyen',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters