File: .travis.yml

package info (click to toggle)
pcp 4.3.2+really4.3.1-0.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 175,188 kB
  • sloc: ansic: 261,305; sh: 123,606; xml: 107,279; cpp: 72,127; perl: 18,283; python: 15,453; yacc: 8,249; lex: 2,585; makefile: 1,957; fortran: 60; java: 52
file content (44 lines) | stat: -rw-r--r-- 1,803 bytes parent folder | download
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
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: pcp+int+458+579837958761052551@groups.io - temporarily disabled (again) due to coverity server failure
    notification_email: nathans@redhat.com
    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)
  - 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 bash -c 'touch /var/lib/pcp/pmdas/simple/.NeedInstall'
  - docker exec pcp-qa bash -c 'touch /var/lib/pcp/pmdas/sample/.NeedInstall'
  - docker exec pcp-qa bash -c 'systemctl restart pmcd || journalctl -xe'

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")'