forked from FragJage/MqttOwfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (44 loc) · 1.24 KB
/
.travis.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
os:linux
language: cpp
dist: xenial
compiler: gcc
env:
global:
- COMPILER=g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- valgrind
- owfs
- mosquitto
before_install:
- pushd ..
- git clone https://github.com/eclipse/paho.mqtt.c.git
- cd paho.mqtt.c
- mkdir build && cd build
- cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE -DPAHO_ENABLE_TESTING=FALSE ..
- make && sudo make install
- cd ../..
- git clone https://github.com/eclipse/paho.mqtt.cpp.git
- cd paho.mqtt.cpp
- mkdir build && cd build
- cmake -DPAHO_WITH_SSL=TRUE -DPAHO_MQTT_C_PATH=../../paho.mqtt.c ..
- make && sudo make install
- sudo ldconfig
- popd
install:
- sudo pip install -U "cpp-coveralls"
- sudo /etc/init.d/owhttpd stop
- sudo /etc/init.d/owftpd stop
- sudo /etc/init.d/owserver stop
- sudo cp /home/travis/build/FragJage/MqttOwfs/owfs.conf /etc/owfs.conf
- sudo /etc/init.d/owserver start
script:
- cmake . -G"Unix Makefiles" -DCMAKE_CXX_COMPILER=$(which $COMPILER)
- make
- ./test/bin/unittest
after_success:
- coveralls --include src --gcov-options '\-lp' --gcov 'gcov'
- valgrind --error-exitcode=0 --leak-check=full ./test/bin/unittest