]> git.proxmox.com Git - libgit2.git/blob - .travis.yml
Merge branch 'development' into clone
[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: erlang
6
7 # Settings to try
8 env:
9 - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
10 - OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
11 - CC=i586-mingw32msvc-gcc OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON"
12
13 # Make sure CMake is installed
14 install:
15 - sudo apt-get install cmake valgrind
16
17 # Run the Build script
18 script:
19 - mkdir _build
20 - cd _build
21 - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
22 - cmake --build . --target install
23
24 # Run Tests
25 after_script:
26 - ctest -V .
27 - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes ./libgit2_clar; else echo "Skipping valgrind"; fi
28
29 # Only watch the development branch
30 branches:
31 only:
32 - development
33
34 # Notify development list when needed
35 notifications:
36 recipients:
37 - vicent@github.com
38 email:
39 on_success: change
40 on_failure: always