Skip to content

Commit d8dc95d

Browse files
committed
added travis CI support
1 parent d45586f commit d8dc95d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
python:
3+
- 3.5
4+
- 3.6
5+
install:
6+
- pip install -r requirements.txt
7+
- pip install coverage
8+
- pip install codecov
9+
script:
10+
- coverage run --source='api' manage.py test --settings=api.config.test_settings
11+
- coverage report -m --omit="*/test*"
12+
after_success:
13+
- codecov

api/config/test_settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010

1111
if 'test' in sys.argv or 'test_coverage' in sys.argv:
12-
# non production key
13-
1412

1513
# use an in memory sqlite3 backend for performance
1614
DATABASES = {

0 commit comments

Comments
 (0)