mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 09:21:13 +08:00
add Cirrus-CI
This commit is contained in:
parent
ebcf98ac2d
commit
afb07b170d
44
.cirrus.yml
Normal file
44
.cirrus.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user