.travis.yml 2.08 KB
Newer Older
Peter Drahoš committed
1 2 3
# Travis-CI Build for libgit2
# see travis-ci.org for details

4 5
language: c

6 7 8 9
os:
  - linux
  - osx

10 11 12
compiler:
  - gcc
  - clang
Peter Drahoš committed
13 14 15

# Settings to try
env:
Ben Straub committed
16 17
 global:
  - secure: "YnhS+8n6B+uoyaYfaJ3Lei7cSJqHDPiKJCKFIF2c87YDfmCvAJke8QtE7IzjYDs7UFkTCM4ox+ph2bERUrxZbSCyEkHdjIZpKuMJfYWja/jgMqTMxdyOH9y8JLFbZsSXDIXDwqBlC6vVyl1fP90M35wuWcNTs6tctfVWVofEFbs="
18
  - GITTEST_INVASIVE_FS_SIZE=1
Ben Straub committed
19
 matrix:
20
  - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
21
  - OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"
22

Arthur Schreiber committed
23 24 25 26 27 28 29
addons:
  apt:
    packages:
    - cmake
    - libssh2-1-dev
    - openssh-client
    - openssh-server
30
    - valgrind
Arthur Schreiber committed
31 32 33

sudo: false

34
matrix:
Ben Straub committed
35
 fast_finish: true
36 37 38
 exclude:
   - os: osx
     compiler: gcc
39 40
 include:
   - compiler: i586-mingw32msvc-gcc
41
     env: OPTIONS="-DCMAKE_TOOLCHAIN_FILE=../script/toolchain-mingw32.cmake" SKIP_TESTS=1
42
     os: linux
Ben Straub committed
43 44
   - compiler: gcc
     env: COVERITY=1
45
     os: linux
46 47 48
   - compiler: gcc
     env:
       - VALGRIND=1
49
         OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug"
50
     os: linux
Ben Straub committed
51
 allow_failures:
52
   - env: COVERITY=1
53 54
   - env:
       - VALGRIND=1
55
         OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug"
56

Peter Drahoš committed
57
install:
Arthur Schreiber committed
58
  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi
Peter Drahoš committed
59

60
# Run the Build script and tests
Peter Drahoš committed
61
script:
62
 - script/cibuild.sh
Peter Drahoš committed
63 64

# Run Tests
65
after_success:
66
 - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
Peter Drahoš committed
67

68
# Only watch the development and master branches
Peter Drahoš committed
69 70
branches:
 only:
71
   - master
72
   - /^maint.*/
73

Peter Drahoš committed
74 75
# Notify development list when needed
notifications:
76 77 78 79 80
 irc:
  channels:
    - irc.freenode.net#libgit2
  on_success: change
  on_failure: always
81 82
  use_notice: true
  skip_join: true
83
 campfire:
Vicent Marti committed
84 85 86
  on_success: always
  on_failure: always
  rooms:
Vicent Marti committed
87
   - secure: "sH0dpPWMirbEe7AvLddZ2yOp8rzHalGmv0bYL/LIhVw3JDI589HCYckeLMSB\n3e/FeXw4bn0EqXWEXijVa4ijbilVY6d8oprdqMdWHEodng4KvY5vID3iZSGT\nxylhahO1XHmRynKQLOAvxlc93IlpVW38vQfby8giIY1nkpspb2w="