summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9d9cfedb826a3a577f852caf55bed68bb7853e9c (plain)
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
language: cpp
dist: xenial
sudo: required
only:
  - master
  - develop
  - \/feature\/.+
  - \/fix\/.+
  - \/hotfix\/.+
  - \/release\/.+

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test

before_install:
  - sudo apt-get update
  - sudo apt-get install libssl-dev libbluetooth3 libbluetooth-dev libudev-dev cmake html2text lcov git cmake automake1.11 build-essential libavahi-client-dev sqlite3 libsqlite3-dev libgtest-dev bluez-tools libpulse-dev libusb-1.0.0-dev cppcheck python3-pip python3-setuptools
  - sudo apt-get install -f clang-format-6.0

script:
  - cppcheck --force -isrc/3rd_party -isrc/3rd_party-static --quiet --error-exitcode=1 src
  - ./tools/infrastructure/check_style.sh
  - mkdir build && cd build
  - cmake ../ -DBUILD_TESTS=ON
  - make install-3rd_party && make -j `nproc` install && sudo ldconfig && make test
env:
  global:
  - LC_CTYPE=en_US.UTF-8
  - CTEST_OUTPUT_ON_FAILURE=TRUE
  - LD_LIBRARY_PATH=.