-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
28 lines (28 loc) · 921 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
dist: trusty
sudo: required
language: cpp
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -q
- sudo apt-get install gcc-5 g++-5 -y
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- sudo apt-get install lcov valgrind
- sudo -H pip install cpp-coveralls
- git clone --branch=release --depth=1 https://github.com/jpcre2/pcre2
- cd pcre2
- autoreconf --force --install
- ./configure --enable-pcre2-16 --enable-pcre2-32 --disable-shared
- make
- sudo make install
- cd -
- rm -rf pcre2
script:
- ./autogen.sh || true
- ./configure --enable-cpp11 --enable-valgrind --enable-thread-check
- make check
- make distclean
- ./configure --enable-cpp11 --enable-coverage
- make check
after_success:
- make coverage
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'