-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
executable file
·61 lines (52 loc) · 2.68 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
language: cpp
compiler: gcc
dist: trusty
notifications:
email: false
#global:
## The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
## via the "travis encrypt" command using the project repo's public key
#- secure: "H/yTUxdgbc3hvvsZ7cFVqfNgRWrND+ZXOy9VfhePb0q2UnfbPSbcfvm4AvNJh4I/Y41mMu8qe4G0ZEZPb152T0kuLHkbieA8VTw4UA+7xo6iYp241tn9qvLPaZ2ol8to+yjONHx+BJJ85O4lZfa50Tmqix5cKIvInWnviGwjXl4llRbnENdp+20mfO2OAogJC/mV5bWoastWkCPpBko9EcqKO6WB18sc/9xTFAIMEoMFDgIWXNeTlTDq0TgXuQMS0DLH2ZT2WhLvhFKYIrMLVFUTr8nI7vnDyxcorIv5hK1Vjv/YnExJXZmDzaCeprcZkVx/C67f4GWMAQTr/3vNcbioQXh86mhON7Xbe018xrKJJekCpxTl/un6mgMEiGcwZNCE0u6gv70DL59y/lphiblLPWxc7Wi9GWSk90HVUf4+Wteh76bnipAX6Al7QZVsT5lk+yfFpBnsKAYL3jJCzL25x4QqaJ1ylniJ8B4TTyornQFW9KvaXx93xb3y4zt31a/43sg01FAtFHf5rz1wSh9wVSL35sQTC4+27ZfFoXeMu9JslO21dBeQZelsdaCWqlwoaYpiIovOd5D5W+96+BAQVmFr+mOBI6FwhORNNi9wZNlvBnJM49va497kIKi1gcK6SBMSBnJPbXFvKEHa6QpEswvX0WXOVyzdNqMV8FM="
before_install:
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y ppa:sickpig/boost
- sudo apt-get update -qq
#- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
install:
# C++17
- sudo apt-get install -qq g++-7 build-essential cmake wget libboost-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
#- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90
# install newer LCOV (apt version outdated and fails for new gcov).
#- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
#- tar xf lcov_1.11.orig.tar.gz
#- sudo make -C lcov-1.11/ install
#- which lcov
# Install coverals gem for uploading coverage to coveralls.
#- gem install coveralls-lcov
before_script:
#- lcov --version
#- gcov --version
#- g++ --version
- PARENTDIR=$(pwd)
- mkdir $PARENTDIR/build && cd $PARENTDIR/build
script:
- cd $PARENTDIR/build
#- cmake -DCMAKE_BUILD_TYPE=Coverage -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF $PARENTDIR
- cmake -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON $PARENTDIR
- make
- ./tests/unit_tests.x
#after_success:
#- cd $PARENTDIR/build
#- lcov --list coverage_out.info.cleaned # Show test report in travis log.
#- coveralls-lcov coverage_out.info.cleaned # uploads to coveralls
#addons:
#coverity_scan:
#project:
#name: "mraggi/discreture"
#description: "A modern C++14 library for combinatorics"
#notification_email: [email protected]
#build_command_prepend: "mkdir build-coverity && cd coverity && cmake .. -DBUILD_BENCHMARKS=ON"
#build_command: "make"
#branch_pattern: master