加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化