Skip to content

Commit

Permalink
First try running mosquitto inside travis for stable testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausen committed Oct 8, 2018
1 parent ec6bb7d commit 783441e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -7,8 +7,12 @@ script:
branches:
only:
- master
services:
- docker
before_install:
- export CHROME_BIN=chromium-browser
- docker pull eclipse-mosquitto
- docker run -d -p 9001:9001 -v $(pwd)/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro eclipse-mosquitto

before_script:
- export DISPLAY=:99.0
Expand Down
6 changes: 6 additions & 0 deletions mosquitto.conf
@@ -0,0 +1,6 @@
listener 9001
protocol websockets

persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
4 changes: 2 additions & 2 deletions tests/mqtt.service.spec.ts
Expand Up @@ -17,8 +17,8 @@ import {

const config: IMqttServiceOptions = {
connectOnCreate: true,
hostname: 'test.mosquitto.org',
port: 8080,
hostname: 'localhost',
port: 9001,
path: ''
};

Expand Down

0 comments on commit 783441e

Please sign in to comment.