Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
Get the mosquitto config and certs to work on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
suvash committed Aug 11, 2017
1 parent b617854 commit c3feea1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ install:
- make
- sudo make install
- cd ..
- sudo cp -R ./mosquitto/certs/ /etc/mosquitto/certs/
- sudo cp ./mosquitto/mosquitto.conf /etc/mosquitto/mosquitto.conf
before_script:
- mosquitto -d
- mosquitto -d -c /etc/mosquitto/mosquitto.conf
- mix local.hex --force
- mix local.rebar
- MIX_ENV=test mix deps.get
script:
- sleep 10
- MIX_ENV=test mix test
after_script:
- MIX_ENV=test mix coveralls.travis
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restart: always
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto/certs/:/mosquitto/certs/
- ./mosquitto/certs/:/etc/mosquitto/certs/
ports:
- "8083:1883"
- "8084:8883"
Expand Down
6 changes: 3 additions & 3 deletions mosquitto/mosquitto.conf
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,14 @@ protocol mqtt
# containing the CA certificates. For capath to work correctly, the
# certificate files must have ".crt" as the file ending and you must run
# "c_rehash <path to capath>" each time you add/remove a certificate.
cafile /mosquitto/certs/ca.crt
cafile /etc/mosquitto/certs/ca.crt
#capath

# Path to the PEM encoded server certificate.
certfile /mosquitto/certs/server.crt
certfile /etc/mosquitto/certs/server.crt

# Path to the PEM encoded keyfile.
keyfile /mosquitto/certs/server.key
keyfile /etc/mosquitto/certs/server.key

# This option defines the version of the TLS protocol to use for this listener.
# The default value allows v1.2, v1.1 and v1.0, if they are all supported by
Expand Down

0 comments on commit c3feea1

Please sign in to comment.