diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 53 |
1 files changed, 10 insertions, 43 deletions
diff --git a/.travis.yml b/.travis.yml index 69db195531..7f7df359b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,53 +13,20 @@ addons: apt: sources: - ubuntu-toolchain-r-test - packages: - - gcc-4.9 - - g++-4.9 - - libssl-dev - - libbluetooth3 - - libbluetooth-dev - - libudev-dev - - libusb-1.0 - - cmake - - html2text - - clang-format-3.6 - - binutils + before_install: - - sudo apt-get -qq update - - sudo apt-get -q -y install bluez-tools sqlite3 libsqlite3-dev automake1.11 - - wget http://archive.ubuntu.com/ubuntu/pool/main/l/lcov/lcov_1.11-3_all.deb - - sudo dpkg -i lcov_1.11-3_all.deb + - 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 + - sudo apt-get install -f clang-format-3.6 + script: - - sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov - - bash -e tools/infrastructure/check_style.sh - - echo "Number of processing units available ${PROCESSING_UNITS_COUNT}" - - mkdir build && cd build && cmake ../ -DBUILD_TESTS=ON -DENABLE_GCOV=ON && make install -j${PROCESSING_UNITS_COUNT} - - sudo ldconfig - - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/bin/lib ; make test - - bash ../tools/infrastructure/show_disabled.sh - - bash -ex ../tools/infrastructure/collect_coverage.sh ./ + - 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 - - CMAKE_CXX_COMPILER=g++-4.9 - - CMAKE_C_COMPILER=gcc-4.9 - LD_LIBRARY_PATH=. - - PROCESSING_UNITS_COUNT=$("nproc") -after_success: - - pwd ; bash <(curl -s https://codecov.io/bash) -f ./coverage/coverage.info || echo "Codecov did not collect coverage reports" -deploy: - provider: releases - api-key: "uw8e4USTAS6c9LFhRMYOvw" - file: - - "coverage_report.tar.gz" - skip_cleanup: true - on: - tags: true -notifications: - email: - - AKutsan@luxoft.com - - NSnitsar@luxoft.com - - MGhiumiusliu@luxoft.com - |