Skip to content

Commit e282295

Browse files
committed
Update Travis configuration
1 parent 458d20c commit e282295

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.travis.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
language: python
22
python:
3-
- 2.6
4-
- 2.7
5-
- 3.2
6-
- 3.3
3+
- 2.6
4+
- 2.7
5+
- 3.2
6+
- 3.3
77
install:
8-
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install --use-mirrors importlib unittest2; fi
9-
- pip install -r requirements.txt
10-
- pip install -r test-requirements.txt
11-
- python setup.py develop
12-
script:
13-
- nosetests
8+
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install importlib unittest2; fi
9+
- pip install -r requirements.txt
10+
- pip install -r test-requirements.txt
11+
- python setup.py develop
12+
script:
13+
- nosetests
14+
env:
15+
global:
16+
secure: OEf+n4gbaDOfj7kqVjA3sjkIYtIsfEv6K2/5RejYxMoaAHEOR5r79HatWa4D2gmJxNZa+Biro6aep17opbBhMY3FAB/RK9dqW966YMpiOIgI5CF6lQeleOik61ByFYgJgp6S4pNS0wD9hOSN42sK0AX4f67m7KlsTAyFkV7ZgQo=

tests/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from . import utils
44
from nose.tools import *
55
import detectlanguage
6+
import os
67

78
class TestApi(utils.TestCase):
89
def setUp(self):
9-
detectlanguage.configuration.api_key = '93dfb956a294140a4370a09584af2ef6'
10+
detectlanguage.configuration.api_key = os.environ['DETECTLANGUAGE_API_KEY']
1011

1112
def test_simple_detect(self):
1213
result = detectlanguage.simple_detect("Hello world")

0 commit comments

Comments
 (0)