]>
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 | |
5 | language: erlang | |
6 | ||
7 | # Settings to try | |
8 | env: | |
9 | - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release" | |
62986ff6 | 10 | - OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON" |
f9abcbdf PD |
11 | |
12 | # Make sure CMake is installed | |
13 | install: | |
14 | - sudo apt-get install cmake | |
15 | ||
16 | # Run the Build script | |
17 | script: | |
18 | - mkdir _build | |
19 | - cd _build | |
20 | - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS | |
21 | - cmake --build . --target install | |
22 | ||
23 | # Run Tests | |
24 | after_script: | |
c2d82a65 | 25 | - ctest -V . |
f9abcbdf PD |
26 | |
27 | # Only watch the development branch | |
28 | branches: | |
29 | only: | |
30 | - development | |
31 | ||
32 | # Notify development list when needed | |
33 | notifications: | |
34 | recipients: | |
5afe95d2 | 35 | - vicent@github.com |
f9abcbdf PD |
36 | email: |
37 | on_success: change | |
5afe95d2 | 38 | on_failure: always |