File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ python:
9
9
cache :
10
10
pip : true
11
11
12
+ before_install :
13
+ # pip install -r requirements.txt
14
+
12
15
install :
13
16
- pip install pylint Sphinx sphinx-rtd-theme
17
+ - pip install .
14
18
15
19
script :
16
- # test adafruit_io_basics examples
17
- - pylint --disable=missing-docstring,invalid-name examples/aio_basics/*.py
18
- # test API examples
19
- pylint --disable=missing-docstring,invalid-name examples/api/*.py
20
- # test MQTT examples
21
- pylint --disable=missing-docstring,invalid-name examples/aio_basics/*.py
22
- # finally, let's build the docs
20
+ # run /tests/
21
+ - python -m unittest discover
22
+ # build library docs
23
23
- cd docs && sphinx-build -E -W -b html . _build/html
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def get_test_key(self):
28
28
"""Return the AIO key specified in the ADAFRUIT_IO_KEY environment
29
29
variable, or raise an exception if it doesn't exist.
30
30
"""
31
- key = os . environ . get ( 'ADAFRUIT_IO_KEY' , None )
31
+ key = '68163f6f6ee24475b5edb0ed1f77f80a'
32
32
if key is None :
33
33
raise RuntimeError ("ADAFRUIT_IO_KEY environment variable must be " \
34
34
"set with valid Adafruit IO key to run this test!" )
@@ -38,7 +38,7 @@ def get_test_username(self):
38
38
"""Return the AIO username specified in the ADAFRUIT_IO_USERNAME
39
39
environment variable, or raise an exception if it doesn't exist.
40
40
"""
41
- username = os . environ . get ( 'ADAFRUIT_IO_USERNAME' , None )
41
+ username = 'travisiotester'
42
42
if username is None :
43
43
raise RuntimeError ("ADAFRUIT_IO_USERNAME environment variable must be " \
44
44
"set with valid Adafruit IO username to run this test!" )
You can’t perform that action at this time.
0 commit comments