summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 1f5f3f965c8e53e6539c440a55b5fdff35215fe3 (plain)
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
language: c

jobs:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    # gcc is just a link to clang on OS X so no need to run it without
    # sanitizers
    - os: osx
      compiler: gcc
      env: CONFIGURE_EXTRA=--with-sanitize=basic
    - os: osx
      compiler: clang

env:
  global:
    - secure: "Ejc9hqPE/TQ1HiSao3FHZ8piTmpCVuQthPYUuFv8Yz7GDbia7yx85b9IHd17wVmg1rGHaFed9hvSesbfFu82h86NYLmnQJGvA4XAptpBw8Z3621U0ar2QXHuaY7uAaKdeAC5NwIS6/DiufEqGtQJrNNs+5pLEATGOuoO+QugdTI="

addons:
  apt:
    packages:
      - python-pip
  coverity_scan:
    project:
      name: vifm/vifm
      version: 0.11-beta+
      description: "TUI file manager with vi like key bindings."
    notification_email: xaizek@posteo.net
    build_command_prepend: scripts/fix-timestamps fast && ./configure --disable-dependency-tracking
    build_command: make -j 3
    branch_pattern: coverity-scan

cache:
  - pip

script:
 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then
     scripts/fix-timestamps fast && (
       if [ "$CC" = gcc -a "$TRAVIS_OS_NAME" = linux ]; then
         pip install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1 &&
         ./configure --disable-dependency-tracking --enable-coverage;
       else
         ./configure --disable-dependency-tracking $CONFIGURE_EXTRA;
       fi
     ) &&
     make -j4 &&
     make check;
   fi

after_success:
 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CC" = gcc ]; then
     coveralls --encoding iso-8859-1 --build-root src/
                                     --exclude tests
                                     --exclude src/utils/parson.c
                                     --exclude src/utils/xxhash.c
                                     --gcov-options '\-p';
   fi

notifications:
  email:
    recipients:
      - xaizek@posteo.net