2016-09-08 20:37:49 +02:00
|
|
|
language: cpp
|
|
|
|
|
2017-02-12 06:08:08 +01:00
|
|
|
sudo: true
|
2016-09-08 21:43:17 +02:00
|
|
|
|
2016-09-08 20:37:49 +02:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- coverity_scan
|
2016-09-08 21:43:17 +02:00
|
|
|
- travis
|
2016-09-08 20:37:49 +02:00
|
|
|
|
2016-09-08 20:15:19 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "KuAAwjiIqkk4vqSX/M3ZZIvQs6edm+tV8IADiklTUYZIFyxu8FgZ6RbDdMD2sef5bNZA1OZhlcbeRtiKff5CfMtvzc607Lg3NUkpi+ShMynWgqS/e0uCMf9ogEJlUiZMxf4juBi7v6DyMl/WV6pAdJmdfHtzcj8GF2mgTfQjkO8="
|
|
|
|
|
2016-09-08 20:37:49 +02:00
|
|
|
before_script:
|
2017-05-28 16:20:21 +02:00
|
|
|
- sh ci/install-cmake.sh
|
2017-02-12 06:08:08 +01:00
|
|
|
- sudo modprobe fuse
|
2016-09-08 20:42:02 +02:00
|
|
|
- mkdir build
|
2016-09-08 20:37:49 +02:00
|
|
|
- cd build
|
2017-05-28 16:20:21 +02:00
|
|
|
- ../ci/cmake/bin/cmake --version
|
|
|
|
- ../ci/cmake/bin/cmake ..
|
2016-09-08 20:37:49 +02:00
|
|
|
|
|
|
|
script:
|
2017-05-28 16:20:21 +02:00
|
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make && make check ; fi
|
2016-09-08 20:15:19 +02:00
|
|
|
|
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "vgough/encfs"
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
notification_email: vgough@pobox.com
|
2016-09-09 10:40:35 +02:00
|
|
|
build_command_prepend: "make clean"
|
2016-09-08 20:15:19 +02:00
|
|
|
build_command: "make -j 4"
|
|
|
|
branch_pattern: coverity_scan
|
2016-09-08 21:43:17 +02:00
|
|
|
|
2016-09-08 21:40:17 +02:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-02-14 06:15:09 +01:00
|
|
|
- attr
|
2016-09-08 21:40:17 +02:00
|
|
|
- clang
|
2017-02-12 06:08:08 +01:00
|
|
|
- fuse
|
2016-09-08 21:40:17 +02:00
|
|
|
- libfuse-dev
|
2017-05-28 16:20:21 +02:00
|
|
|
- gettext
|