Browse Source

add Cirrus-CI

pull/767/head
Antonio SJ Musumeci 5 years ago
parent
commit
afb07b170d
  1. 44
      .cirrus.yml
  2. 26
      tools/install-build-pkgs

44
.cirrus.yml

@ -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

26
tools/install-build-pkgs

@ -1,16 +1,24 @@
#!/bin/sh #!/bin/sh
if [ -e /usr/bin/apt-get ]; then if [ -e /usr/bin/apt-get ]; then
export DEBIAN_FRONTEND=noninteractive
apt-get -qy update 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 \ 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 elif [ -e /usr/bin/dnf ]; then
dnf -y update dnf -y update
dnf -y install \ dnf -y install \
git rpm-build gcc-c++ make which python automake \
git rpm-build gcc-c++ make which python3 automake \
libtool gettext-devel libtool gettext-devel
elif [ -e /usr/bin/yum ]; then elif [ -e /usr/bin/yum ]; then
yum -y update yum -y update
@ -27,3 +35,11 @@ elif [ -e /usr/sbin/pkg ]; then
git gmake gcc autoconf automake libtool \ git gmake gcc autoconf automake libtool \
gettext-tools gettext-tools
fi 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
Loading…
Cancel
Save