| 1 |
# Use a C++11 distro |
| 2 |
dist: trusty |
| 3 |
sudo: required |
| 4 |
|
| 5 |
# Enable C++ support |
| 6 |
language: cpp |
| 7 |
|
| 8 |
# Compiler selection |
| 9 |
compiler: gcc |
| 10 |
|
| 11 |
env: |
| 12 |
global: |
| 13 |
# coverity key |
| 14 |
- secure: "NKZbBnMALGIIQJy/s2kc3EST/stw+gjhtrGq0jkbsWr7Wx3FH+lmLeHNsDXRnD1VbpG02c5YsLllqz9OVu+0yxWGepvKNmCz1cNITIALEHbrax8/Af9LzPRL/QZxS/Qe11sMuySp4X16mFBUyxMd/X+I9i96Xf1vKkZABklYD1Q=" |
| 15 |
|
| 16 |
# addons |
| 17 |
addons: |
| 18 |
apt: |
| 19 |
packages: |
| 20 |
- gcc-6 |
| 21 |
- g++-6 |
| 22 |
sources: |
| 23 |
- ubuntu-toolchain-r-test |
| 24 |
|
| 25 |
coverity_scan: |
| 26 |
project: |
| 27 |
name: "mpaland/printf" |
| 28 |
description: "Tiny printf implementation" |
| 29 |
notification_email: [email protected] |
| 30 |
build_command_prepend: "make clean" |
| 31 |
build_command: "make" |
| 32 |
branch_pattern: master |
| 33 |
|
| 34 |
before_install: |
| 35 |
# connect coverity |
| 36 |
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- |
| 37 |
|
| 38 |
# Active branches |
| 39 |
branches: |
| 40 |
only: |
| 41 |
- master |
| 42 |
|
| 43 |
script: |
| 44 |
# Link gcc-6 and g++-6 to their standard commands |
| 45 |
- sudo rm /usr/bin/gcc |
| 46 |
- sudo rm /usr/bin/g++ |
| 47 |
- sudo ln -s /usr/bin/gcc-6 /usr/bin/gcc |
| 48 |
- sudo ln -s /usr/bin/g++-6 /usr/bin/g++ |
| 49 |
# Export CC and CXX |
| 50 |
- export CC=/usr/bin/gcc-6 |
| 51 |
- export CXX=/usr/bin/g++-6 |
| 52 |
# Check versions of gcc, g++ |
| 53 |
- gcc -v && g++ -v |
| 54 |
# Run build commands |
| 55 |
- make |
| 56 |
# execute the text suite |
| 57 |
- bin/test_suite -d yes |
| 58 |
# coverall profiling |
| 59 |
- tmp/cov/test_suite |
| 60 |
|
| 61 |
after_success: |
| 62 |
## Report to codecov |
| 63 |
- bash <(curl -s https://codecov.io/bash) |