forked from resec/sentencepiece
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 957 Bytes
/
.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
sudo: false
language: cpp
compiler:
- gcc
- clang
before_install:
- sed -i -e 's|AC_PREREQ(\[2.69\])|AC_PREREQ([2.68])|' configure.ac
- pip install --user cpp-coveralls
- pip install --user 'requests[security]'
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
- llvm-toolchain-precise
packages:
- gcc-4.8
- g++-4.8
- clang-3.7
- libprotobuf-c++
- protobuf-compiler
- libprotobuf-dev
script:
- ./autogen.sh
- ./configure && make && make check
- if [ "$CXX" = "g++-4.8" ]; then make distclean && ./configure --enable-gcov && make && make check; fi
after_success:
- if [ "$CXX" = "g++-4.8" ]; then coveralls --exclude-pattern '.*(include|usr|test|third_party|pb).*' --gcov-options '\-lp' --gcov gcov-4.8 ; fi