-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
62 lines (53 loc) · 2.59 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
# This file is part of b6b.
#
# Copyright 2017, 2018, 2020 Dima Krasner
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
language: c
dist: bionic
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: "aPMOOUYbnK4PpLnV/iKyct8eSsYVFgIiAXZywHITD1KB43K+qXW6YBofOSTIv7qLiWBnckO7K3QviZkUprWoY+OasZO8QEMCb2MKSod1njRManXZKsirMcQtzHsnxtnbECK3ArJpw048ItyxRRTe7NxP+swoC4wxO5ThItw6QFrpaH4BAqMAG4qp88vpUrui/pMj1KKVkwoZhUv4J6aRWHzPcp5nHcaGbnn9LAEBX89MgsgGtRKPizulAkdMp9iHbpd+bfKddgxLH/IBfOlt+bR3XbWYAmpyZSVF/ThABatQZKt7yngO45zUAUwoLbfY4AxUEXLBL1bYjA/97itpxy6ar0EDlogM8hOzGoIRAf/59pMfnmzVwmp5mHcUgCgNXMj3xMEjbZT8MypRpyxWpcjYrlu+EWpBKneh3MQo68R0EnZHF2bFpsN/+BHUqvLXLkRciEFa1hlD9EiB9TeJ6w9eLM6Fq3sERND7eRhl677ZV06Nt2uBugtvm7tSIJpHHbDauSeojUSHefTYBJgfn+/1QgZzyqp0zWmn5UTTawnuIM4ZRIehMPSsQXBFgBr1NFgdNcv/J2srBULoAt+YFcVJ9tEav8Bc/C08QpxC7bZ9MYOeB5RLcbj6wPXxsoE4q9Rbyo90yymFJFbg7v697648ldsjFG3Y/lyYAhkbBHo="
services:
- docker
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
before_script:
- pip3 install meson
- 'echo {\"ipv6\": true, \"fixed-cidr-v6\": \"2001:db8:1::/64\"} | sudo tee /etc/docker/daemon.json'
- sudo systemctl restart docker
script:
- docker run --rm --cap-add SYS_PTRACE -u `id -u`:`id -g` -w /b6b -v `pwd`:/b6b -v ~/.ccache:/tmp/.ccache -e CCACHE_DIR=/tmp/.ccache dimkr/b6b ./ci_build.sh
after_success:
- meson -Db_coverage=true -Doptimistic_alloc=false build-coverage
- meson test -C build-coverage
- bash <(curl -s https://codecov.io/bash)
- meson build-coverity
addons:
apt:
packages:
- python3-pip
- python3-setuptools
- python3-wheel
- ninja-build
coverity_scan:
project:
name: "dimkr/b6b"
description: "Build submitted via Travis CI"
notification_email: dima@dimakrasner.com
build_command_prepend: "meson build-coverity"
build_command: "ninja -C build-coverity"
branch_pattern: master
cache: ccache