summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 22a0085e340464f6c912330f2df99cda3fba7618 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - LD_LIBRARY_PATH=.
   - secure: "YrUVgA4/Vs4YPINdq1hwc5Mv2SZEtq/XY/+Wg0hC6lpicRBLSiQEgsqmxZc0/OFIbxzTYSE080X8SA6DXp+A0MEVu94zYr9lS/jJ5cDi/2Cl8QV+S/q0nlvr8aJEmCjOFDQTvWMp32ajBIo9HKsN9WrfK6nHuGhBBkZHPjCiVSE="
language: cpp
dist: trusty
sudo: required
only:
  - master
  - develop
  - \/feature\/.+
  - \/fix\/.+
  - \/hotfix\/.+
  - \/release\/.+

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.9
    - g++-4.9
    - libssl-dev
    - libbluetooth3
    - libbluetooth-dev
    - libudev-dev
    - cmake
    - html2text
    - clang-format-3.6
  coverity_scan:
    project:
      name: "smartdevicelink/sdl_core"
      description: "Build submitted via Travis CI"
    notification_email: jack@livio.io
    build_command_prepend: "mkdir build && cd build && cmake ../"
    build_command:   "make install"
    branch_pattern: coverity
before_install:
  - sudo apt-get -qq update
  - sudo apt-get -q -y install libavahi-client-dev 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
script:
  - sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov
  - bash -e tools/infrastructure/check_style.sh
  - mkdir build && cd build && cmake ../ -DBUILD_TESTS=ON -DENABLE_GCOV=ON && make install
  - sudo ldconfig
  - make test
  - bash -ex ../tools/infrastructure/collect_coverage.sh ./
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=.
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
    - AByzhynar@luxoft.com
    - NSnitsar@luxoft.com
    - RMalynovskyi@luxoft.com
    - MGhiumiusliu@luxoft.com
    - AGaliuzov@luxoft.com
    - ANosach@luxoft.com