代码拉取完成,页面将自动刷新
os: linux
dist: bionic
language: c
# install libkvmi for all tests
before_install:
# install in /tmp/libkvmi to avoid breaking astyle test
- git clone --depth=2 https://github.com/libvmi/libkvmi /tmp/libkvmi
- pushd /tmp/libkvmi
- ./bootstrap
- ./configure
- make
- sudo make install
- popd
- rm -rf /tmp/libkvmi
jobs:
include:
#
# Coverity
#
- if: branch = master
env:
- TEST="Coverity"
compiler: gcc
addons:
coverity_scan:
project:
name: "$COVERITY_PROJECT"
description: "Build submitted via Travis CI"
notification_email: $COVERITY_EMAIL
build_command_prepend: "mkdir build; cd build; cmake .."
build_command: "make"
branch_pattern: $COVERITY_BRANCH
install:
- sudo apt-get update
- sudo apt-get -q -y install bison flex autoconf-archive libjson-c-dev libvirt-dev libxen-dev libfuse-dev
script:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
#
# SonarCloud
#
- if: branch = master
env:
- TEST="SonarCloud"
dist: xenial
compiler: clang
addons:
sonarcloud:
organization: "libvmi"
token: "$SONAR_SCAN_TOKEN"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi'
- sudo apt-get update
- sudo apt-get -q -y install bison flex autoconf-archive libjson-c-dev libvirt-dev libxen-dev libfuse-dev
- autoreconf -vif
- ./configure
- build-wrapper-linux-x86-64 --out-dir bw-output make -j2
- sonar-scanner
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。