forked from chewing/chewing-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (29 loc) · 1.01 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
28
29
30
31
32
33
34
35
36
language: cpp
matrix:
include:
- env: CTEST_OUTPUT_ON_FAILURE=1
- env: CTEST_OUTPUT_ON_FAILURE=1 CFLAGS='-fsanitize=address'
- env: CTEST_OUTPUT_ON_FAILURE=1 OPTION='-DCMAKE_CXX_FLAGS=-O0 -DENABLE_GCOV=yes' COVERALLS=yes
git:
depth: 1
# opt-in Ubuntu Trusty
sudo: required
dist: trusty
cache: ccache
install:
- pip install --user cpp-coveralls
- sudo add-apt-repository --yes ppa:chewing/chewing
- sudo apt-get update
- sudo apt-get install --yes cmake help2man qt5-default qttools5-dev-tools libchewing3-dev
- ccache -V && ccache --show-stats && ccache --zero-stats && export use_ccache=true
- gcc --version
- g++ --version
- gcov --version
script:
- cmake $OPTION .
- make -j2
- make -j2 check
after_success:
- if [ x$COVERALLS == xyes ]; then coveralls --exclude gmock --exclude test --exclude-pattern '.*CMake[^/]+\.c(?:pp)?' --exclude-pattern '.*_automoc.cpp'; fi
after_script:
- if [ "$use_ccache" = true ]; then ccache --show-stats ; fi