-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
19 lines (19 loc) · 1001 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: python
python:
- pypy
- 2.7
- 3.5
- 3.6
env: SYNTAX=true
install:
- pip install -r requirements.txt
- pip install -r test_requirements.txt
before_install:
- export DEVICE_HIVE_TRANSPORT_URLS='http://playground-dev.devicehive.com/api/rest,ws://playground-dev.devicehive.com/api/websocket'
- openssl aes-256-cbc -K $encrypted_94dc46d8330a_key -iv $encrypted_94dc46d8330a_iv -in credentials.tar.enc -out credentials.tar -d
- tar xvf credentials.tar
- export DEVICE_HIVE_ADMIN_LOGIN=$(cat admin_login.txt)
- export DEVICE_HIVE_ADMIN_PASSWORD=$(cat admin_password.txt)
- export DEVICE_HIVE_CLIENT_LOGIN=$(cat client_login.txt)
- export DEVICE_HIVE_CLIENT_PASSWORD=$(cat client_password.txt)
script: pytest -xv tests --transport-urls=$DEVICE_HIVE_TRANSPORT_URLS --admin-login=$DEVICE_HIVE_ADMIN_LOGIN --admin-password=$DEVICE_HIVE_ADMIN_PASSWORD --client-login=$DEVICE_HIVE_CLIENT_LOGIN --client-password=$DEVICE_HIVE_CLIENT_PASSWORD --tb=short