This repository was archived by the owner on Feb 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 1.92 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
language: cpp
compiler: gcc
env:
global:
- COMPILER=g++-4.9
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "XVoTrABieJ0jycg2vovmzJWH388WL9AfzUZkc0nFTcLb+dF6Mul4ycYn3MEH+MGcWfsIPOweOxiK46Vkvm0O2AmkKMtXN9ov418vyphNpWuKzY5b2xnKiJqNCZ8XvIwCvtNldF0hl+dxrzhagVWZHpbxMC92z9UiTErNW88JLK1wNOk0xmfaLyXP0RJVu48zMEEqzQchlsRgGw6Qigt9X+OffkU9rujkrvc8Xzth3eC5J4rYha7yLzIiIfscVNRXGFv7+rU0Lq7xgLP7Vbca4amlwQHjVNj73RkWz/yLkmIpF1/bjSeu59oDX3/qz7+CddGn4d3FobEqynPi6YJ1pZnSaUMqIuIBqbR8I103CdPMcbYmcfhVLDr136v6wSHM3Bicr1sod9d2xw4gaZwRjuviF5MvZa9u6DR5ASwobeBzuikzsi4UMzR5EedP6pQfpV4M1xsKw1oUi4UWvmxMCGbkADD6yUdIZo9OG/xKwqzuWRT2iY8UAo/nml0u1AAeJNrO0Xy6cIt5TgVy+wrIJ0eCRPyjWnHu2HNuNnbMTBGKlLpveKLnYvg5TeGEOI46icbWtGvTWeUcJkENE0vUI88zZLzcvjqatEzxGc4Yi6itkSkpxLtmAdD9tTai+12gm1nHUYepwdKrWvQZ0LOb2NJFZk6T/MoX0Lwbdxcj9cI="
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9','valgrind']
coverity_scan:
project:
name: "FragJage/xPLCron"
description: "Cron for xPL protocol"
notification_email: inscrip.jage@free.fr
build_command_prepend: "cov-configure --comptype g++ --compiler $(which $COMPILER) && cmake . -G'Unix Makefiles' -DCMAKE_CXX_COMPILER=$(which $COMPILER)"
build_command: "make"
branch_pattern: coverity_branch
install:
- pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
script:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then cmake . -G"Unix Makefiles" -DCMAKE_CXX_COMPILER=$(which $COMPILER); fi
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make; fi
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ./test/bin/unittest; fi
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then valgrind --error-exitcode=1 --leak-check=full ./test/bin/unittest; fi
after_success:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then coveralls --include src --gcov-options '\-lp' --gcov 'gcov-4.9'; fi