-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
65 lines (57 loc) · 3.76 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: cpp
compiler:
- clang
- gcc
before_install:
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- sudo apt-get -y update
- sudo apt-get -y install tcl tcl-dev
- if [ "$CXX" = "g++" ]; then echo sudo apt-get -y install libcppunit-dev libcppunit-1.13-0; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get -y install python-yaml python-pip; fi
- if [ "$CXX" = "g++" ]; then sudo pip install cpp-coveralls; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get -y install gcc-6 g++-6; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
- if [ "$CXX" = "clang++" ]; then sudo apt-get -y install clang-3.6; fi
- if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxxabi/trunk@r249649 libcxxabi; fi
- if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxx/trunk@r249595 libcxx; fi
- if [ "$CXX" = "clang++" ]; then (cd libcxx/lib && env CXX="clang++-3.6 -I ../../libcxxabi/include" sh buildit); fi
- if [ "$CXX" = "clang++" ]; then sudo cp libcxx/lib/libc++.so.1.0 /usr/lib/; fi
- if [ "$CXX" = "clang++" ]; then sudo mkdir /usr/include/c++/v1; fi
- if [ "$CXX" = "clang++" ]; then sudo cp -r libcxx/include/* /usr/include/c++/v1/; fi
- if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++.so.1.0 /usr/lib/libc++.so; fi
- if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++.so.1.0 /usr/lib/libc++.so.1; fi
- if [ "$CXX" = "clang++" ]; then (cd libcxxabi/lib && env CXX="clang++-3.6 -I ../../libcxx/include" sh buildit); fi
- if [ "$CXX" = "clang++" ]; then sudo cp libcxxabi/lib/libc++abi.so.1.0 /usr/lib/; fi
- if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so; fi
- if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so.1; fi
- if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++" CPPUNIT_CFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++ -lc++abi"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
- (wget http://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz && tar -zxvf cppunit-1.14.0.tar.gz && cd cppunit-1.14.0 && ./configure --prefix=/usr --disable-doc --disable-doxygen --disable-html-docs && make -j2 V=1 && sudo make install)
- export CPPFLAGS="-D_FORTIFY_SOURCE=2"
# Skip install
install: true
script:
- if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then ./configure --with-cppunit; fi
- if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 V=1; fi
- if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 check V=1; fi
after_success:
- if [ "${COVERITY_SCAN_BRANCH}" != "1" ] && [ "$CXX" = "g++-6" ]; then coveralls --gcov gcov-6 -r . -b . -e misc -e src/tests -e src/misc -e src/indices.h -e src/config.h -e src/config-sanity.h -e src/bits.h -e src/bdlib.h -t ${COVERALLS_REPO_TOKEN}; fi
# Coverity configuration
env:
global:
# COVERITY_SCAN_TOKEN
- secure: WG6t7cnbz7SJSNw4e6EOZ2A5dcLhDdCPELxzK/lODYpLkcXZ/LIB9KDMu+cnXAEz5zdu5azF6sMhH6fdhTs3SHB5hQProCVb3S06Z1JqXyGqOl6D7k8MGsylsQw3vy3jrGXp5Wk+6PTyMIcWRFfZk3UQpLTidiWyhJjw9F9/Nh8=
# COVERALLS_REPO_TOKEN
- secure: KgQ7VU2jCA3emWAQNQpk3r1wwCLx40tAs5DG9EzVD+kSgLvxdYH/mRuvKxHC2vxXDruyQe5iTLUglYjFoRCN7bxMbNIQEhn4ax4WCKe1r7gFqbNZb0r8rzlHPXq47BGc3b9NxacaAg8ZqJOdfqA+lkQTsX7W3jeD3Wa17HaVzVQ=
addons:
coverity_scan:
project:
name: "bdrewery/bdlib"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cov-configure --comptype g++ --compiler g++-6 --template; ./configure --enable-debug"
build_command: "make -j2 V=1"
branch_pattern: coverity_scan
# State we need old build infrastructure for now
sudo: required
dist: trusty