forked from desura/desura-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 1.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository --yes ppa:makson96/desurium-travis
- sudo apt-get update
- sudo apt-get install -qq clang-3.4 cmake g++-4.8 gcc-4.8 gcc-4.8-multilib libboost1.48-dev libboost-filesystem1.48-dev libboost-system1.48-dev libgtest-dev libnotify-dev libtinyxml2-dev libwxgtk3.0-dev wx-common
- if [ $CC == "clang" ]; then export CC=clang-3.4 && export CXX=clang++-3.4; fi
- if [ $CC == "gcc" ]; then export CC=gcc-4.8 && export CXX=g++-4.8; fi
script:
- cmake . -DBUILD_CEF=off -DDEBUG=on -DWITH_GTEST=ON -DBUILD_TESTS=ON -DCTEST_OUTPUT_ON_FAILURE=ON
- make -j4
- ctest --output-on-failure .
after_success:
- coveralls --exclude third_party --exclude src/tests --exclude breakpad-prefix --exclude gtest-prefix --exclude fetch_cef-prefix/src/fetch_cef/tests --exclude fetch_cef-prefix/src/fetch_cef/libcef --exclude CMakeFiles --exclude-pattern 'CMake[^\.]*\.c(?:pp)?' --exclude-pattern '[^\.]*\.h' > /dev/null
notifications:
irc:
channels:
- "irc.freenode.org#desura"
template:
- "%{repository} (%{commit}) by %{author} : %{message} %{foo} "
- "Build details: %{build_url}"
- "Latest commit: %{compare_url}"
on_success: change
on_failure: change
skip_join: true