Skip to content

Commit 1ebd2e1

Browse files
authored
Merge pull request #27 from devicehive/develop
New release
2 parents c162233 + 3c43248 commit 1ebd2e1

18 files changed

Lines changed: 1403 additions & 977 deletions

Dockerfile.tests

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.6
2+
MAINTAINER Dmitry Platon <platon.dimka@gmail.com>
3+
4+
ENV TEST=''
5+
ENV TRANSPORT_URLS='http://playground.dev.devicehive.com/api/rest,ws://playground.dev.devicehive.com/api/websocket'
6+
ENV ADMIN_REFRESH_TOKEN=''
7+
ENV USER_REFRESH_TOKEN=''
8+
ENV LOG_LEVEL='INFO'
9+
10+
ADD devicehive /opt/devicehive-python/devicehive
11+
ADD tests /opt/devicehive-python/tests
12+
ADD setup.py README.md /opt/devicehive-python/
13+
RUN cd /opt/devicehive-python && pip install . pytest
14+
15+
ENTRYPOINT pytest -xsv /opt/devicehive-python/tests/$TEST\
16+
--transport-urls=$TRANSPORT_URLS\
17+
--admin-refresh-token=$ADMIN_REFRESH_TOKEN\
18+
--user-refresh-token=$USER_REFRESH_TOKEN\
19+
--log-level=$LOG_LEVEL

0 commit comments

Comments
 (0)