-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (34 loc) · 1.57 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
env:
global:
# encrypted COVERITY_SCAN_TOKEN
- secure: "GZW9ij3PBUPLp4ksM5hcjoQUk5oPrI2Y90kQZA5ZEypPtodhKMiD+T+BDX3UTOfwSWUACDajqMlc6AYwbxrcIqPd6u4eNld3LQ7nAX4pF3i86C59A+xQP54+ezDDGA+HhKQQZIW4O7VP0uj0GbWk9sF8mBrFtnSoKgbXn+y7FcE="
sudo: required
services:
- docker
language: c
addons:
coverity_scan:
project:
name: "performancecopilot/pcp"
description: "Performance Co-Pilot is a system performance analysis toolkit."
notification_email: [email protected]
build_command_prepend: "./configure"
build_command: "make"
branch_pattern: master
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- sudo apt-get -qq update
- sudo apt-get install -y linux-headers-$(uname -r)
- sudo pip install pylint
- pylint --rcfile=.pylintrc $(find src/pmdas/bcc -name '*.python')
- docker build -f build/containers/travis-ci/Dockerfile -t pcp-qa .
before_script:
- docker run -d --privileged -v /lib/modules:/lib/modules:ro -v /usr/src:/usr/src:ro --name pcp-qa pcp-qa
- docker exec pcp-qa systemctl start pmcd
script:
- docker exec pcp-qa bash -c 'cd /var/lib/pcp/testsuite && ./check -g sanity'
- docker exec pcp-qa bash -c 'cd /var/lib/pcp/testsuite && ./check -g pmda.bcc'
after_failure:
- docker exec pcp-qa bash -c 'tail -vn +1 $(for bad in /var/lib/pcp/testsuite/*.out.bad; do echo $bad ${bad/out.bad/full}; done)'
after_script:
- docker exec pcp-qa bash -c 'tail -vn +1 $(find /var/log/pcp -name "*.log")'