add Cirrus-CI

This commit is contained in:
Antonio SJ Musumeci 2020-06-18 20:08:31 -04:00
parent ebcf98ac2d
commit afb07b170d
2 changed files with 65 additions and 5 deletions

44
.cirrus.yml Normal file
View File

@ -0,0 +1,44 @@
freebsd_task:
name: "freebsd:12.1"
freebsd_instance:
image_family: freebsd-12-1
env:
ASSUME_ALWAYS_YES: yes
script:
- tools/install-build-pkgs
- gmake
linux_task:
name: "alpine:3.11"
container:
image: alpine:3.11
cpu: 4
memory: 2G
timeout_in: 10m
script:
- tools/install-build-pkgs
- make STATIC=1 LTO=1
linux_task:
name: "centos:7"
container:
image: centos:7
cpu: 4
memory: 2G
timeout_in: 10m
script:
- tools/install-build-pkgs
- make
- make rpm
linux_task:
name: "centos:8"
container:
image: centos:8
cpu: 4
memory: 2G
timeout_in: 10m
script:
- tools/install-build-pkgs
- make
- make rpm

View File

@ -1,16 +1,24 @@
#!/bin/sh
if [ -e /usr/bin/apt-get ]; then
export DEBIAN_FRONTEND=noninteractive
apt-get -qy update
apt-get -qy --no-install-suggests --no-install-recommends --force-yes \
apt-get -qy --no-install-suggests --no-install-recommends \
install \
build-essential git g++ debhelper \
python \
automake libtool lsb-release
ca-certificates \
build-essential \
git \
g++ \
debhelper \
automake \
libtool \
lsb-release
apt-get -qy --no-install-suggests --no-install-recommends install python
apt-get -qy --no-install-suggests --no-install-recommends install python3
elif [ -e /usr/bin/dnf ]; then
dnf -y update
dnf -y install \
git rpm-build gcc-c++ make which python automake \
git rpm-build gcc-c++ make which python3 automake \
libtool gettext-devel
elif [ -e /usr/bin/yum ]; then
yum -y update
@ -27,3 +35,11 @@ elif [ -e /usr/sbin/pkg ]; then
git gmake gcc autoconf automake libtool \
gettext-tools
fi
if [ ! -e /usr/bin/python ]; then
if [ -e /usr/bin/python3 ]; then
ln -s /usr/bin/python3 /usr/bin/python
elif [ -e /usr/bin/python2 ]; then
ln -s /usr/bin/python2 /usr/bin/python
fi
fi