]>
Commit | Line | Data |
---|---|---|
f9abcbdf PD |
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 | |
034ccc76 CMN |
5 | language: c |
6 | ||
7 | compiler: | |
8 | - gcc | |
9 | - clang | |
f9abcbdf PD |
10 | |
11 | # Settings to try | |
12 | env: | |
034ccc76 CMN |
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 | ||
f9abcbdf PD |
21 | # Make sure CMake is installed |
22 | install: | |
9f99c5de | 23 | - sudo apt-get install cmake valgrind |
f9abcbdf PD |
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: | |
c2d82a65 | 34 | - ctest -V . |
064ee42d | 35 | - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar; else echo "Skipping valgrind"; fi |
f9abcbdf PD |
36 | |
37 | # Only watch the development branch | |
38 | branches: | |
39 | only: | |
40 | - development | |
41 | ||
42 | # Notify development list when needed | |
43 | notifications: | |
034ccc76 CMN |
44 | irc: |
45 | channels: | |
46 | - irc.freenode.net#libgit2 | |
47 | on_success: change | |
48 | on_failure: always | |
f9abcbdf | 49 | recipients: |
5afe95d2 | 50 | - vicent@github.com |
f9abcbdf PD |
51 | email: |
52 | on_success: change | |
5afe95d2 | 53 | on_failure: always |