-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
75 lines (71 loc) · 3.05 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
66
67
68
69
70
71
72
73
74
75
dist: focal
language: cpp
compiler:
- clang
- gcc
os:
- linux
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "V+hzBkW1v7lMoq+MQ2Q232b4vun0FMoQIs7d+en5npZygjPs2l+coxg20Cx2w+sCDOBUC4yHBb7y9snMJIhBmwJTgokq9Ia4LEeC2lFe1juh3NmPPs1Ul4CykGQNJROApK/vpKkJ9lx8rBmlJB21iqLWOHYd9MWItnVnbWaPFDL5rX7C7SFiOv2/C+qpMGl+Ro9DXM8C1kq0tat7ZYUZLJUZHp0gkP/2p3GQ4/w6wPXA1Jb3SPiBuDK9zidln1EqI6dP9JTDSnmYmV/qy5ZCIHkMyGtWTcrfb1JJ+Es5V8IbAjoaDav914mw3y6QmQ237CFRUvkUU+eadZTk7SWeB4lfBnm8Fvn4otO5BC1D+WhlqG29W/t0zFa7Azqe/PdxbvBsrBqOAuLzUeYnqxe0XaUwoWlp48LPwkYUBcqViWsz1RvmhhTE7WEw7CcpoOz+zjPOszFgLyLQ88+NF5twakV7oUeG/4WNTV1uoAq/yqIutXLLYwN4yNGYn75Bii/j6kV/4O34vsvbqu1XQEVXMBsHPptgECxqxjIZ5faJNpkCDz+XS8BliKt4GBm+Vm3tBhQ+wrquZPrNTwqB25Ll70XxPu0LQ9lcg+entGv9+goJWiAK67D/vu3Qa5LYdOo8lhxd7ne5wYLUkGhfTmdsuywtyhN1gmIrpK1pP8AZRq0="
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- "pkg-config"
- "python3"
- "python3-dev"
- "python3-yaml"
- "python3-wheel"
- "python3-setuptools"
- "python3-cryptography"
- "python3-pip"
- gcc-7
- g++-7
- ninja-build
- cmake
- doxygen
- libc6-dbg # needed by Valgrind
- valgrind
- lcov
- curl
coverity_scan:
project:
name: "abbyssoul/libstyxe"
description: "9P2000 protocol implementation"
notification_email: [email protected]
build_command_prepend: "./configure --enable-coverage --disable-sanitizer"
build_command: make coverage_report
branch_pattern: coverity_scan
before_install:
- 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-
- sudo -H pip3 install --upgrade pip
- sudo -H pip3 install cpplint cpp-coveralls
- sudo -H pip3 install conan --upgrade
- gem install coveralls-lcov
install:
- gcov --version
- lcov --version
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90
- echo $CXX
- $CXX --version
- ld --version
- conan --version
- conan profile new default --detect
- conan profile update settings.compiler.libcxx=libstdc++11 default
- conan remote add abyss https://api.bintray.com/conan/abbyssoul/public-conan
script:
- ./configure --enable-debug --enable-coverage --enable-sanitizer && make clean;
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make codecheck; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make test; fi
# Disabled valgrind build as std::random_device causes failure on Valgrind-3.11.0 avaliable in travisCI
#- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./configure --disable-sanitizer --enable-debug && make clean && make verify ; fi
after_success:
- make coverage_report
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls