Skip to content

Commit

Permalink
.travis.yml: enable sonarcloud
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
  • Loading branch information
giuseppe committed Jul 29, 2019
1 parent c7d8695 commit b1d72bc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
Empty file removed .sonarcloud.properties
Empty file.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
matrix:
allow_failures:
- env: TEST=coverity
- env: TEST=sonarcloud
cache:
directories:
- '$HOME/.sonar/cache'
env:
matrix:
- TEST=make
- TEST=sonarcloud
- TEST=podman
- TEST=oci-validation
- TEST=coverity
Expand All @@ -22,6 +27,10 @@ language: c
sudo: required
dist: xenial
addons:
sonarcloud:
organization: "giuseppe"
token:
secure: "cratZs866YzinJnsJvPpxGp+wGhp90Ei0uY8SM6p7ZAf0A0LGVFPUi+o2PeXRbjHLxqcjU4OvZdnz2/shYQh8ohEJxo9jH9HNM4j6O58O6vsk7/n4xzAzvnQK+1HKZ72Cz/fPLFDY8gwN2C+Ryq8nbqtzUohsiZNrtL3QFi9NerjgE8tTzod4YPrSHgpK8yaAAbuHxMkIZZO50Cf1lLCQPEjzMn2HJPCZgCOaOnh6hoP/+zAkwok8v/ZAEy0Fz63hBD/5OAYzdYYDtWVjDWoocGxxKMhlyIh+D5blUN4mLm4RyNIUi37puVhZT49Aua43GpdmiJ2iqCP8yF0OQHJ7eii2s53DwBQqtEdQIKG+ofoMmebgyPxTG7jxOD56h1ajNIXWOZ7/Ii3JuAGFCgRP/F7JC060hbj47CcqfUo4qqlfsw/18+X0pH7DBMzJl+JV0H7x6mbxJ30L3eZ4xUPF5dBNX7bcstXyuCQ+GkAA2PfalJMc4/50upeXVJ4ZhDkpPZ3xCxtJ71plcHH089l0KxgOdaCjerp19IoPx44Eo9otGRA/nO6YIPDHKAUJd5GZzSorguXGCzI4FEe/y9G5tDR2RsB+q7XXVE36f+PJtSVKMjB6sSFiQBk7270fXKUemQyDoo5YyjBp/rALtoHeyjfpP3WPBTeU33RroIzt98="
apt:
packages:
- automake
Expand All @@ -46,6 +55,7 @@ before_install:
- git clone --depth=1 git://github.com/lloyd/yajl
- "(cd yajl && ./configure -p /usr && make && sudo make install)"
script:
- if test $TEST = sonarcloud; then ./autogen.sh && build-wrapper-linux-x86-64 --out-dir bw-output sh -c './configure && make' && cd contrib/sonarcloud && sonar-scanner -X; fi
- if test $TEST = make; then ./autogen.sh && ./configure CFLAGS='-Wall -Werror' && make -j $(nproc) && make syntax-check; fi
- if test $TEST = podman; then sudo docker run --privileged --rm -ti -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v $(pwd):/crun crun-podman; fi
- if test $TEST = oci-validation; then sudo docker run --privileged --rm -ti -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v $(pwd):/crun crun-oci-validation; fi
Expand Down
8 changes: 8 additions & 0 deletions contrib/sonarcloud/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey=giuseppe_crun
sonar.projectName=crun

sonar.projectBaseDir=../..
sonar.sources=src
sonar.tests=tests

sonar.cfamily.build-wrapper-output=../../bw-output
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.projectKey=giuseppe_crun
sonar.projectName=crun

sonar.sources=src/**
sonar.tests=tests/**

sonar.cfamily.build-wrapper-output=bw-output

0 comments on commit b1d72bc

Please sign in to comment.