forked from openbsm/openbsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (49 loc) · 2.21 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
language: c
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: "0IFnq4BvajBCaWYWSWFtci345f2Teiqjt5mXvasMW4WZ4Eqg798jscydQQIWYXDj4zq0xyH1Sci384/j4cSQVj4fc1B7MviV0RAa3c+NvRnhUpq6SwD9iGLyQ40OnQulS2t7OvFpS/J4+W8rFmkyFlrFim03SegpVMrd173Shd0yxwqZl9Vu9k3UIL1cvnrz1wFt7Krt8nW7Hi9jQRB5MdF99BG5ay8NLnPH/WdAfJW02TMF1aFQZ/igRSMHLJdDQmtHlIn7IInMeytRn+kXZVxcUdxoD9PIFSgGDd+nU1U22z52P4UlP8EltQG7IubmC/Hk73alVbhVtbSGhLW0zQLRAj0QoMFGnNBD1YtEvdHZbHIuI+4X7liG3zSImnnHC9QKsaVhJJ14M8uhZf99DR0qltPYnyzRSMf6Afm5zW0GYXxayV4hMd1/MZEdpz65G4ZNhkEBp7HeoZbLls43+DOWJTpMRjkfYXsx1yOYoVIoDB1VflTjPUX48x2h+3DgQ4r81CCqBa8HRUwTaNskNaDdRvS7wAZyZZSW9FQeTJhFuclMksEOqpFXJPODWzRPMXxVEuP0G3Lv0fTvJvL8TFTLonGye+lrkJn8syTDNRiDe9B87wxKC52LMH4xl8rzyW18TvaHh7WUf+UfJsQJ4lhOyopbplXF9DciFKyndLg="
before_install:
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo apt-get -qq update
sudo apt-get -qq install byacc flex
elif [ $TRAVIS_OS_NAME == "osx" ]; then
brew update
brew install byacc flex openssl
fi
- |
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >/tmp/cert.crt
if [ $TRAVIS_OS_NAME == "linux" ]; then
cat /tmp/cert.crt >> /etc/ssl/certs/ca-certificates.crt
elif [ $TRAVIS_OS_NAME == "osx" ]; then
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/cert.crt
fi
rm /tmp/cert.crt
script: ./configure && make
matrix:
include:
- os: linux
compiler: clang
- os: linux
compiler: gcc
- os: osx
compiler: clang
env:
- CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
- LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
- os: osx
compiler: gcc
env:
- CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
- LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
addons:
coverity_scan:
project:
name: "openbsm/openbsm"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: ./configure
build_command: make
branch_pattern: coverity_scan