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
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (41 loc) · 2.3 KB
/
Copy path.travis.yml
File metadata and controls
49 lines (41 loc) · 2.3 KB
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
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: "loFBn048AuwfaBx4gBFXroKiIosX/tnQmeOinP1bjVUsWfuCRLORdcBOXtpohhiVKiesapQrABCWLKmcHxpK7BJKpY0YV16wGUTzv6S8E+ERBpUQ44WRpq9VNQ4mI94N6QWbsx42AqExzIuMGKvKSgPEpdswl1Erew4KXhrVCt79GM3UNtUA14ek2axOFs7ZwBG1NGVCO4aZYmd3aMgu0IQ9bQ8sL66SXn7+ShlbxeVBEZlmikVvOU+s8JoKVQlSvEytuQT3Z5xKk2tXzjxQQtgG8JUrLyD8XNsY39DkhW/f6TDYBp4y4uc7YhJ5yyvqVf4dxP5tM6/vGPHcLoAvYKv8d16wjFPUzcYZPhZcPDjRHucOAlE6kLEHx9d+qhZV4JKj4gmd2MgxH0fVGM73Qg3AP62Vy6lRX1bnWLk0njD0rQbLteUvy3RCGyrNeclhyVGldQFFdwjE/uzwVFQ0KqSPCSv3SIi2KnMo6/HGbER+2fvpJsCuXXy/y1tvzeWKX1C5k90OVp5donY7+VUsB8b3UMpU3O+/n+VF6Kr6lo6MB33bWzMPM5v3DqishR+aKxFQVEfCfoLFIbX+rOKyNsonvW9QlbFSDrdVdLEhYaFriUG2nP8Zwh4uGOx7KjlCBh1vfVFU1NKPc1vQUMYoZIV+pZ7q1KFlJ9TD1wc9WlM="
sudo: required
services:
- mysql
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- valgrind
coverity_scan:
project:
name: "FragJage/xPLDatabase"
description: "Log xPL message values into a database"
notification_email: inscrip.jage@free.fr
build_command_prepend: "cov-configure --template --comptype g++ --compiler $COMPILER && cmake . -G'Unix Makefiles' -DCMAKE_CXX_COMPILER=$(which $COMPILER)"
build_command: "make"
branch_pattern: coverity_branch
before_install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90
- mysql -e "create database xPLDatabase;" -u root
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
after_success:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then valgrind --error-exitcode=1 --leak-check=full ./test/bin/unittest; fi
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then coveralls --include src --gcov-options '\-lp' --gcov 'gcov-4.9'; fi