Switch to Cirrus CI.

This commit is contained in:
Dag-Erling Smørgrav 2022-10-02 16:52:22 +02:00
parent 724d00a6e2
commit 0b9ee39e23
2 changed files with 81 additions and 30 deletions

81
.cirrus.yml Normal file
View File

@ -0,0 +1,81 @@
env:
LANG: C
common_task_template: &COMMON_TASK_TEMPLATE
configure_script:
- ./autogen.sh
- ./configure --enable-all --enable-developer-warnings --enable-werror
compile_script:
- make
test_script:
- make check
dist_script:
- make dist
source_artifacts:
path: "*.xz"
alpine_task:
name: Alpine
matrix:
- name: Alpine
container:
image: alpine:latest
prepare_script:
- apk update
- apk add autoconf automake gcc g++ make libtool pkgconf xz
<< : *COMMON_TASK_TEMPLATE
debian_task:
name: Debian
matrix:
- name: Debian 12
container:
image: debian:bookworm
- name: Debian 11
container:
image: debian:bullseye
- name: Debian 10
container:
image: debian:buster
prepare_script:
- apt-get update
- apt-get install -y autoconf automake gcc g++ make libtool pkg-config
<< : *COMMON_TASK_TEMPLATE
fedora_task:
name: Fedora
matrix:
- name: Fedora 37
container:
image: fedora:37
- name: Fedora 36
container:
image: fedora:36
- name: Fedora 35
container:
image: fedora:35
prepare_script:
- dnf install -y autoconf automake gcc g++ make libtool pkg-config xz
<< : *COMMON_TASK_TEMPLATE
freebsd_task:
name: FreeBSD
matrix:
- name: FreeBSD 14
freebsd_instance:
image_family: freebsd-14-0-snap
- name: FreeBSD 13
freebsd_instance:
image_family: freebsd-13-1
- name: FreeBSD 12
freebsd_instance:
image_family: freebsd-12-3
prepare_script:
- pkg update -f
- pkg install -y autoconf automake gmake libtool pkgconf
<< : *COMMON_TASK_TEMPLATE
package_script:
- make -C freebsd package
- mv freebsd/work/pkg/*.pkg .
binaries_artifacts:
path: "*.pkg"

View File

@ -1,30 +0,0 @@
dist: xenial
language: c
compiler:
- clang
- gcc
before_install:
- sudo apt-get update -q
- sudo apt-get install -y pkg-config
before_script:
- ./autogen.sh
- ./configure --enable-developer-warnings --enable-werror
script:
- make check
# Coverity Scan configuration
env:
global:
- CFLAGS="-Wno-unused-result"
- secure: "mvZ7LO2lCFicTg+L3c4PvDeXtMR7ez2pfPYJ/BSYLknTx1yzz31p9k1lwFPnG86oBK4A5MxnlGj+LAfLBRR2ZxvVh5enQyjqSSFfGzG06bmSmfzbM+wkveTzFiKyAnWyzd0bFshsU0tuFXU4QH3jiO+/QO+ixybNyw2wgC+yBz0/OBmzIVKvoK7mqBl31givL6YsLPF5HdipMZK7KHYxp1Kjj36AF1QmsivMKalMjBGIh5PeJ8QY3R/GDdy+I2zEyAS1a6fFMcBbCQrjPl4eQJ/y6pl3EuvMfeSjRUPXvzEf9fiwZcuiw9KY0EDtYuIAyzaBUTHuW/tO359LbLYI4X2V3SgA5b58H0zDvavssRzAp/l/bYq70Q0n1Xz/aF1R01SDqG48BFMWWT3eb7eLIeZNapPLOWk07D801Wpt8XYbfEDZZ5FA5UK/o8DBAlIEDivFLkuG2+vv9wMwY0qkTQ8ZyBvfSRa/pjVBpiPiPRO5Pg6UrnPOHnX7hf+IGa1U38vY8S8sBdA0Xc4QSH3K7dQZc33N12Nhrbp9hQR5WFPz35CZVnf77XPLSWocG1icb6tFF2ybzE26XiUXzRy6eaVkfcNlAvtUl4Rci7520436bJnNfZiFMD9Lj4Wy/td89guqboH2jETcHbly5h5yqfL+95pCt+0i3zCtC0GfrbU="
addons:
coverity_scan:
project:
name: cryb-to/cryb-to
notification_email: des@des.no
build_command: make
branch_pattern: scan