-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
92 lines (82 loc) · 3.5 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: c
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: osx
compiler:
- gcc
branches:
only:
- master
- coverity_scan
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: "hKdAfXJvjXezVUKgTLyu0/i/BF/OZoE7jN/Wa3UGFS1vt76GTyOHWXKPZuEQXLIDIh2CPL8Zqe0Hd8GpauA7zP4C2g9HhrivlI7DyuF3Ju9hXdg6/LyENrx6zT1YolkqskbfJUUHMQaf2OpZ1Jcb+8GvT9NWt9qfg1ex4Hqk4in62qqf+zbKUTqYTrrclUMGk0QSOPV6LV+Kqi8YmMK/5TTKhrP1gYQMmLs03BYKlOgdXP998Q6L+QkCHvYZn5SWpOWx1XYEZODOAjtelvCIpvIkgz7nM8hs76tJueax+ibwok7LwNki6DjF0gYRid7LmJNcLdtrk9Lmo0DDGOOAtPm8oRQ9SOS9FU72MP7C6Vj6v8DZvjs1EwtVRCp2OLypMJF1Xf+eVt+Z9ukTyp+Uja6c3Tn8edtJ8+bBhBqfqOvay/uOCkMkMpY5ylAFPPaYNBT/2imHK0qbH5fUGursu4M6weKdJurOZQctWaPrYMETGvNy9Y2MXe/jjjKU92EuumMouUAAPkzN7eeyGlOVTc1boE2MG1cQ8OB8Wxd3O12/b34iv4D4Aa+QEhP3T6UBmltWLEz/D+aUDDqfpjv0nxdTfM5NfHN1rjCzdAJFW1hhKFVdvMXc7ivKt+9cJdsmmZDUrgWnQNvup+OY7D1gH1fIZt9b3qA5AAuN20+bfhc="
addons:
apt:
packages:
# Keep these dependencies in sync with README.md
- libfuse2
- libfuse-dev
- fuse
# Coverity addon fails on osx:
# http://stackoverflow.com/questions/38902793/travisci-coverity-warning-no-files-were-emitted
coverity_scan:
project:
name: "gburca/rofs-filtered"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cov-configure --gcc --comptype gcc --compiler gcc-4.8 && mkdir coverity && cd coverity && cmake .."
build_command: "make"
branch_pattern: coverity_scan
# Alternative way of specifying the build matrix. Compiler is incorrectly
# parsed as ["gcc"] instead of "gcc", causing the build to fail.
#matrix:
# include:
# - os: linux
# compier: gcc
# env:
# - COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
# - COVERITY_SCAN_BRANCH_PATTERN="coverity_scan"
# - COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
# - COVERITY_SCAN_BUILD_COMMAND_PREPEND="./autogen.sh && ./configure"
# - COVERITY_SCAN_BUILD_COMMAND="make"
# script:
# - curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash
# - os: osx
# compiler: clang
# env:
# - COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
# - COVERITY_SCAN_BRANCH_PATTERN="coverity_scan"
# - COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
# - COVERITY_SCAN_BUILD_COMMAND_PREPEND="./autogen.sh && ./configure && cov-configure --comptype clang --compiler clang"
# - COVERITY_SCAN_BUILD_COMMAND="make"
# script:
# - curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true
# https://github.com/travis-ci/travis-ci/issues/5377
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
# https://github.com/osxfuse/osxfuse/issues/337
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install osxfuse ; fi
before_script:
- if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
then
echo "Skip before_script on coverity_scan branch.";
exit 0;
fi
- mkdir build
- cd build
- cmake ..
- cd ..
script:
- if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]]; then
echo "Skip script on coverity_scan branch.";
exit 0;
fi
- cd build
- make
- sudo make install