Merge pull request #22 from cryb-to/cirrus-ci

Switch from Travis to Cirrus CI
This commit is contained in:
Dag-Erling Smørgrav 2022-10-02 19:50:51 +02:00 committed by GitHub
commit c62b2f9c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 94 additions and 42 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"

1
.gitignore vendored
View File

@ -21,6 +21,7 @@
*.o
*.pc
*.trs
*.xz
Makefile
Makefile.in
test.cov

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

View File

@ -3,7 +3,7 @@ AC_INIT([cryb.to], [0.20221002], [des@des.no], [cryb-to], [http://cryb.to/])
AC_CONFIG_SRCDIR([include/cryb/core.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz])
AM_CONFIG_HEADER([include/config.h])
AC_CONFIG_HEADERS([include/config.h])
AM_MAINTAINER_MODE([enable])
############################################################################

View File

@ -35,7 +35,6 @@
#endif
#if HAVE_ENDIAN_H
#define _BSD_SOURCE
#include <endian.h>
#endif

View File

@ -35,7 +35,6 @@
#endif
#if HAVE_ENDIAN_H
#define _BSD_SOURCE
#include <endian.h>
#endif

View File

@ -35,7 +35,6 @@
#endif
#if HAVE_ENDIAN_H
#define _BSD_SOURCE
#include <endian.h>
#endif

View File

@ -35,7 +35,6 @@
#endif
#if HAVE_ENDIAN_H
#define _BSD_SOURCE
#include <endian.h>
#endif

View File

@ -35,7 +35,6 @@
#endif
#if HAVE_ENDIAN_H
#define _BSD_SOURCE
#include <endian.h>
#endif

View File

@ -133,12 +133,12 @@ t_prepare(int argc, char *argv[])
t_add_test(t_fnv0_64, &t_offset_basis, "FNV-64 offset basis");
n = sizeof t_cases / sizeof t_cases[0];
for (i = 0; i < n; ++i) {
t_add_test(t_fnv0_32, &t_cases[i], "");
t_add_test(t_fnv0_64, &t_cases[i], "");
t_add_test(t_fnv1_32, &t_cases[i], "");
t_add_test(t_fnv1_64, &t_cases[i], "");
t_add_test(t_fnv1a_32, &t_cases[i], "");
t_add_test(t_fnv1a_64, &t_cases[i], "");
t_add_test(t_fnv0_32, &t_cases[i], "FNV-0-32");
t_add_test(t_fnv0_64, &t_cases[i], "FNV-0-64");
t_add_test(t_fnv1_32, &t_cases[i], "FNV-1-32");
t_add_test(t_fnv1_64, &t_cases[i], "FNV-1-64");
t_add_test(t_fnv1a_32, &t_cases[i], "FNV-1a-32");
t_add_test(t_fnv1a_64, &t_cases[i], "FNV-1a-64");
}
return (0);
}

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/test.h>

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/test.h>

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/test.h>

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/test.h>

View File

@ -33,6 +33,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/test.h>