aboutsummaryrefslogtreecommitdiffstats
path: root/slirp/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/.gitlab-ci.yml')
-rw-r--r--slirp/.gitlab-ci.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/slirp/.gitlab-ci.yml b/slirp/.gitlab-ci.yml
new file mode 100644
index 000000000..46e58a9b3
--- /dev/null
+++ b/slirp/.gitlab-ci.yml
@@ -0,0 +1,43 @@
+image: fedora:latest
+
+variables:
+ DEPS: meson ninja-build
+ gcc pkg-config glib2-devel
+ mingw64-gcc mingw64-pkg-config mingw64-glib2
+ clang-analyzer git-core
+
+before_script:
+ - dnf install -y $DEPS
+ - git fetch --tags https://gitlab.freedesktop.org/slirp/libslirp.git
+ - git describe
+
+build:
+ script:
+ - meson --werror build || (cat build/meson-logs/meson-log.txt && exit 1)
+ - ninja -C build
+ - (cd build && meson test) || (cat build/meson-logs/testlog.txt && exit 1)
+ - ninja -C build scan-build
+
+build-mingw64:
+ script:
+ - (mkdir buildw && cd buildw && mingw64-meson --werror) || (cat buildw/meson-logs/meson-log.txt && exit 1)
+ - ninja -C buildw
+
+Coverity:
+ only:
+ refs:
+ - master
+ - coverity
+ script:
+ - dnf update -y
+ - dnf install -y curl clang
+ - curl -o /tmp/cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64
+ --form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN
+ - tar xfz /tmp/cov-analysis-linux64.tgz
+ - CC=clang meson build
+ - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C build
+ - tar cfz cov-int.tar.gz cov-int
+ - curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
+ --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
+ --form file=@cov-int.tar.gz --form version="`git describe --tags`"
+ --form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID "