]> git.proxmox.com Git - libgit2.git/blob - .travis.yml
Merge pull request #900 from pwkelley/development
[libgit2.git] / .travis.yml
1 # Travis-CI Build for libgit2
2 # see travis-ci.org for details
3
4 # As CMake is not officially supported we use erlang VMs
5 language: c
6
7 compiler:
8 - gcc
9 - clang
10
11 # Settings to try
12 env:
13 - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
14 - OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
15
16 matrix:
17 include:
18 - compiler: i586-mingw32msvc-gcc
19 env: OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON"
20
21 # Make sure CMake is installed
22 install:
23 - sudo apt-get install cmake valgrind
24
25 # Run the Build script
26 script:
27 - mkdir _build
28 - cd _build
29 - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
30 - cmake --build . --target install
31
32 # Run Tests
33 after_script:
34 - ctest -V .
35 - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar; else echo "Skipping valgrind"; fi
36
37 # Only watch the development branch
38 branches:
39 only:
40 - development
41
42 # Notify development list when needed
43 notifications:
44 irc:
45 channels:
46 - irc.freenode.net#libgit2
47 on_success: change
48 on_failure: always
49 recipients:
50 - vicent@github.com
51 email:
52 on_success: change
53 on_failure: always