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

Commit

Permalink
Merge branch 'enable-websockets-support-on-ci'
Browse files Browse the repository at this point in the history
* enable-websockets-support-on-ci:
  Compile Mosquitto with Websockets support
  • Loading branch information
suvash committed Jul 24, 2018
2 parents c55f986 + a33e278 commit 9dae361
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@ matrix:
elixir: 1.6.0
before_install:
- sudo apt-get update -qq
- sudo apt-get -y install libc-ares-dev libssl-dev uuid-dev
- sudo apt-get -y install libc-ares-dev libssl-dev uuid-dev cmake
- wget https://github.com/warmcat/libwebsockets/archive/v3.0.0.tar.gz -O libwebsockets-3.0.0.tar.gz
- wget http://mirror.switch.ch/eclipse/mosquitto/source/mosquitto-1.4.12.tar.gz
install:
- tar xvzf libwebsockets-3.0.0.tar.gz
- cd libwebsockets-3.0.0
- mkdir build
- cd build
- cmake .. -DOPENSSL_ROOT_DIR=/usr/bin/openssl
- make
- sudo make install
- sudo ldconfig
- cd ../..
- tar xvzf mosquitto-1.4.12.tar.gz
- cd mosquitto-1.4.12
- sed -i "s/WITH_WEBSOCKETS:=.*/WITH_WEBSOCKETS:=yes/" config.mk
- make
- sudo make install
- cd ..
Expand Down

0 comments on commit 9dae361

Please sign in to comment.