From fed68d1748308f73772639ce7cd5b06100b7563f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 4 Mar 2020 14:26:32 -0500 Subject: cirrus: Add a Cirrus CI build to test FreeBSD Fixes #41. --- .cirrus.yml | 14 ++++++++++++++ .gitattributes | 1 + README.md | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..ecd7c7f --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,14 @@ +freebsd_instance: + image_family: freebsd-12-1 + +task: + install_script: | + mount -t fdescfs fdescfs /dev/fd + pkg install -y bash git gmake + ln -s ../usr/local/bin/bash /bin/bash + pw groupadd -n users + pw useradd -n user -g users -s /bin/sh -m + git clone . ~user/bfs + chown -R user:users ~user/bfs + test_script: | + su user -c "gmake -C ~/bfs check" diff --git a/.gitattributes b/.gitattributes index 084bde3..9f6257e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ .git* export-ignore .travis.yml export-ignore +.cirrus.yml export-ignore diff --git a/README.md b/README.md index e98e42f..1fcebbd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ [![License](http://img.shields.io/badge/license-0BSD-blue.svg)](https://github.com/tavianator/bfs/blob/master/COPYING) [![Version](https://img.shields.io/github/v/tag/tavianator/bfs?label=version)](https://github.com/tavianator/bfs/releases) -[![Build Status](https://api.travis-ci.org/tavianator/bfs.svg?branch=master)](https://travis-ci.org/tavianator/bfs) +[![Travis CI Status](https://api.travis-ci.org/tavianator/bfs.svg?branch=master)](https://travis-ci.org/tavianator/bfs) +[![Cirrus CI Status](https://api.cirrus-ci.com/github/tavianator/bfs.svg)](https://cirrus-ci.com/github/tavianator/bfs) Breadth-first search for your files. -- cgit v1.2.3