File: .travis.yml

package info (click to toggle)
scanmem 0.17-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: ansic: 4,758; python: 1,581; sh: 182; makefile: 98
file content (38 lines) | stat: -rw-r--r-- 1,385 bytes parent folder | download | duplicates (4)
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
language: c
sudo: required
compiler: gcc-6

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: "C3Gd8W9U0yQIxnUkcKlzicB2iOeZ42NPpVXTOnigjoc2UoI4eVYlDjEZjccZAIn0wHUguircvBt0eyLD7cuNf2mTozJ21BG0NpMdYbG1n/aVchnJBr6rldb2X3kVmQCj50LQKm+aINbK1qSs56VIUwNepPiul+HPMV6sL5sQ5M0="
  - PATH=/usr/lib/binutils-2.26/bin:${PATH}
  - ASAN_OPTIONS='halt_on_error=1'
  - UBSAN_OPTIONS='halt_on_error=1'

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-

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-6 binutils-2.26 intltool
  # Coverity scan add-on, fires only when pushing to the `coverity_scan` branch
  coverity_scan:
    project:
      name: "scanmem/scanmem"
      description: "Build submitted via Travis CI"
    notification_email: andreastacchiotti@gmail.com
    build_command_prepend: "./autogen.sh && ./configure CC=gcc"
    build_command: "make"
    branch_pattern: coverity_scan

script:
  - if [ "${COVERITY_SCAN_BRANCH}" == 1 ]; then exit ; fi
  - ./autogen.sh && ./configure --enable-gui
  - make CFLAGS='-O2 -fsanitize=address,undefined'
  # Testing requires `sudo` for `ptrace()`
  - sudo make check VERBOSE=1