]> git.proxmox.com Git - libgit2.git/blob - .travis.yml
Merge pull request #1511 from carlosmn/refspec-shorthand
[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 update >/dev/null
24 - sudo apt-get -q install cmake valgrind
25
26 # Run the Build script
27 script:
28 - mkdir _temp
29 - git init --bare _temp/test.git
30 - git daemon --listen=localhost --export-all --enable=receive-pack --base-path=_temp _temp 2>/dev/null &
31 - export GITTEST_REMOTE_URL="git://localhost/test.git"
32 - mkdir _build
33 - cd _build
34 - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
35 - cmake --build . --target install
36 - ctest -V .
37
38 # Run Tests
39 after_success:
40 - valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -ionline
41
42 # Only watch the development branch
43 branches:
44 only:
45 - development
46
47 # Notify development list when needed
48 notifications:
49 irc:
50 channels:
51 - irc.freenode.net#libgit2
52 on_success: change
53 on_failure: always
54 use_notice: true
55 skip_join: true
56 campfire:
57 on_success: always
58 on_failure: always
59 rooms:
60 - secure: "sH0dpPWMirbEe7AvLddZ2yOp8rzHalGmv0bYL/LIhVw3JDI589HCYckeLMSB\n3e/FeXw4bn0EqXWEXijVa4ijbilVY6d8oprdqMdWHEodng4KvY5vID3iZSGT\nxylhahO1XHmRynKQLOAvxlc93IlpVW38vQfby8giIY1nkpspb2w="