forked from opendxl/opendxl-bootstrap-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (29 loc) · 783 Bytes
/
.travis.yml
File metadata and controls
37 lines (29 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
sudo: false
language: python
services:
- docker
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
# Use Python 3.7 on xenial with sudo since it's not available on trusty yet
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
before_install:
- docker pull opendxl/opendxl-broker
- docker run -d -p 127.0.0.1:8883:8883 -p 127.0.0.1:8443:8443 opendxl/opendxl-broker
- docker ps -a
install:
- pip install .[test]
# Install through setup.py should be redundant because of the preceding pip
# install. Just doing this to try to catch any high-level errors.
- python setup.py install
before_script:
- python -m dxlclient provisionconfig dxlclient/test 127.0.0.1 client -u admin -p password
# command to run tests
script:
- python setup.py ci