#
# \brief Default Travis for project
# \author Uilian Ries <uilianries@gmail.com>
#
dist: trusty

language: cpp

compiler: gcc

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq -y cmake doxygen cppcheck clang-3.6 graphviz mosquitto
  - curl -s https://packagecloud.io/install/repositories/uilianries/poco/script.deb.sh | sudo bash && sudo apt-get install libpoco-1.7=1.7-1
  - git clone https://github.com/google/googletest.git && cd googletest && mkdir build && cd build && cmake .. && make && sudo make install
  - cd ../.. && rm -rf googletest
  - git clone https://github.com/uilianries/MQTTClient.git && cd MQTTClient && mkdir build && cd build && cmake .. && make && sudo make install
  - cd ../.. && rm -rf MQTTClient

script:
  - script/doxygen.sh
  - script/cppcheck.sh
  - script/tidy.sh
  - mkdir build && cd build && cmake .. && make -j4
  - sudo make install
  - test/application/test_application
  - test/device/test_device

after_success:
  - bash <(curl -s https://codecov.io/bash)

branches:
  only:
    - develop
    - master

#
# \brief Default Travis for project
# \author Uilian Ries <uilianries@gmail.com>
#
dist: trusty

language: cpp

compiler: gcc

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq -y cmake doxygen cppcheck clang-3.6 graphviz mosquitto
  - curl -s https://packagecloud.io/install/repositories/uilianries/poco/script.deb.sh | sudo bash && sudo apt-get install libpoco-1.7=1.7-1
  - git clone https://github.com/google/googletest.git && cd googletest && mkdir build && cd build && cmake .. && make && sudo make install
  - cd ../.. && rm -rf googletest
  - git clone https://github.com/uilianries/MQTTClient.git && cd MQTTClient && mkdir build && cd build && cmake .. && make && sudo make install
  - cd ../.. && rm -rf MQTTClient
  - git clone https://github.com/uilianries/BeagleBoneBlackGPIO.git && cd BeagleBoneBlackGPIO && mkdir build && cd build && cmake .. && make && sudo make install
  - cd ../.. && rm -rf BeagleBoneBlackGPIO

script:
  - script/doxygen.sh
  - script/cppcheck.sh
  - script/tidy.sh
  - mkdir build && cd build && cmake .. && make -j4
  - sudo make install
  - test/application/test_application
  - test/device/test_device

after_success:
  - bash <(curl -s https://codecov.io/bash)

branches:
  only:
    - develop
    - master

Add BBBGPIO library as dependecy
Add BBBGPIO library as dependecy

Signed-off-by: Uilian Ries <d4bad57018205bdda203549c36d3feb0bfe416a7@gmail.com>
