Skip to content

Commit 35a137b

Browse files
Update Travis Tests
1 parent a8fdc2b commit 35a137b

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@ python:
1010
- '3.5'
1111
install:
1212
- python setup.py install
13-
script:
14-
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; else python -m unittest discover; fi
13+
script:
14+
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; else python -m unittest
15+
discover; fi
1516
notifications:
1617
hipchat:
1718
rooms:
1819
secure: Lo3L/YNWpn9ulGX4D2HlWrBOyxMPlLkFcwxbYViG69Ta6BV+c6YE+Pct43tExlL6sZ+nj5p8X4KRTeOM4sqASrebWA25nyUrNTm+vZYFbi5XfmGvvi8TEsgg0MYRQRWWn/R2z0kZW/fqOY6sqJuoIafMBmC3tayTJRiH1Ct2Cw0=
1920
template:
2021
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
2122
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
22-
<a href="https://github.com/sendgrid/docs/commits/%{commit}">View on GitHub</a>'
23+
<a href="https://github.com/sendgrid/%{repository}/commits/%{commit}">View on
24+
GitHub</a>'
2325
format: html
2426
notify: false
27+
env:
28+
global:
29+
secure: Dez9lIrNCbIoCdgz96kptm0idaXuNnLam8BriY5HbLRdDvgsLihqlQiMPIHZbWzT8C1E2HtSLGES3vTRAWBkyKgi/EyfIe7ngqIUhFRcb2dY0gFrPOXaOwOAegTYpjY3fYaqMdW1va++2I4ft/SEd1l5tJWnkN+Fj9vGYua1GdE=

test/test_v3_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
except ImportError:
88
import unittest
99
import os
10-
host = 'http://localhost:4010'
10+
host = os.environ.get('MOCK_HOST')
1111

1212
class UnitTests(unittest.TestCase):
1313
def setUp(self):

0 commit comments

Comments
 (0)