2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2015-04-13 18:05:19 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# COVERITY_SCAN_TOKEN
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "DO0hLop827D9LXcCxMQ3AmSowl1fC8NPeU/um5Jc0aJqnBvizw4BTWyXyYPlCzci1Lx+4SlRAFBttd0FIMIUEi/9atLR9zSivwLCZ86HaP2gJjzOz/TjM+ZQUcIHsZ2x1kf2dngEoWG5Ur3sa9T+HYd9t32F+aO/PjjN5wFtI6I="
|
|
|
|
|
2015-04-02 13:31:23 +02:00
|
|
|
before_install:
|
2015-04-15 23:17:42 +02:00
|
|
|
# g++4.8.1
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
2015-04-02 13:31:23 +02:00
|
|
|
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y qtbase5-dev libqt5svg5-dev ccache qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev
|
2015-04-13 18:25:07 +02:00
|
|
|
- sudo apt-get install -y libqt5core5 libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 xpdf cppcheck
|
2015-04-02 13:31:23 +02:00
|
|
|
|
2015-04-15 23:17:42 +02:00
|
|
|
install:
|
|
|
|
# g++4.8.1
|
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
|
|
|
|
2015-04-02 13:31:23 +02:00
|
|
|
before_script:
|
2015-04-15 21:12:42 +02:00
|
|
|
# QTestLib require GUI support for some tests
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2015-04-02 13:31:23 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- which qmake
|
|
|
|
- uname -a
|
|
|
|
- qmake --version
|
|
|
|
- qmake ../Valentina.pro -r
|
|
|
|
|
|
|
|
script:
|
2015-04-15 23:17:42 +02:00
|
|
|
- $CXX --version
|
2015-04-16 20:18:07 +02:00
|
|
|
- cppcheck --error-exitcode=1 --quiet --inline-suppr --template '{file}:{line}:{message}:{id}' --std=posix --force --enable=performance,portability ../src
|
2015-04-02 13:31:23 +02:00
|
|
|
- make -j$(nproc)
|
2015-04-15 21:12:42 +02:00
|
|
|
- DISPLAY=:99.0 make check
|
2015-04-02 13:31:23 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- dismine@gmail.com
|
2015-04-05 19:15:38 +02:00
|
|
|
- susan.spencer@gmail.com
|
2015-04-02 13:31:23 +02:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2015-04-13 18:05:19 +02:00
|
|
|
|
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
|
|
|
|
# GitHub project metadata
|
|
|
|
# ** specific to your project **
|
|
|
|
project:
|
|
|
|
name: "dismine/Valentina"
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
|
|
|
|
# Where email notification of build analysis results will be sent
|
|
|
|
notification_email: dismine@gmail.com
|
|
|
|
|
|
|
|
# Commands to prepare for build_command
|
|
|
|
# ** likely specific to your build **
|
|
|
|
build_command_prepend: "qmake ../Valentina.pro -r; make clean"
|
|
|
|
|
|
|
|
# The command that will be added as an argument to "cov-build" to compile your project for analysis,
|
|
|
|
# ** likely specific to your build **
|
|
|
|
build_command: "make -j$(nproc)"
|
|
|
|
|
|
|
|
# Pattern to match selecting branches that will run analysis. We recommend leaving this set to 'coverity_scan'.
|
|
|
|
# Take care in resource usage, and consider the build frequency allowances per
|
|
|
|
# https://scan.coverity.com/faq#frequency
|
|
|
|
# We push code to github not so frequent so leave master branch.
|
|
|
|
branch_pattern: master
|