libreoffice-online/.cirrus.yml
Gleb Popov 572d1aa488 Add Cirrus CI configuration for FreeBSD testing.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I078da9155ff5325805d7093da010776d4c579942
2021-05-12 22:10:03 +03:00

31 lines
1.3 KiB
YAML

task:
name: "FreeBSD 13"
freebsd_instance:
matrix:
- image_family: freebsd-13-0-snap
deps_script:
- sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
- env ASSUME_ALWAYS_YES=yes pkg update -f
- env ASSUME_ALWAYS_YES=yes pkg remove -y python27 python2 python37
- env ASSUME_ALWAYS_YES=yes pkg install -y python3 python38 py38-polib py38-lxml
- env ASSUME_ALWAYS_YES=yes pkg install -y gmake pkgconf poco cppunit autotools coreutils libreoffice pango git bash npm
- mkdir libreoffice-src
- cd libreoffice-src
- fetch http://arrowd.name/libreoffice-include.tar.xz
- tar -xvf libreoffice-include.tar.xz
build_script:
- mkdir .git/hooks
- pw useradd -n lool -d /tmp/loolhome -m
- chmod -R o+rwx ./
- su -m lool -c './autogen.sh'
- 'su -m lool -c ''env HOME=/tmp/loolhome MAKE=gmake
CPPFLAGS="-isystem /usr/local/include" CFLAGS="-I/usr/local/include"
CXXFLAGS="-I/usr/local/include" LDFLAGS=-L/usr/local/lib ./configure
--with-lo-path=/usr/local/lib/libreoffice/
--with-lokit-path=./libreoffice-src/include
--disable-seccomp --disable-setcap --enable-debug'' '
- su -m lool -c 'env HOME=/tmp/loolhome gmake -j`sysctl -n hw.ncpu`'
- chown root ./loolmount
- chmod +s ./loolmount
test_script:
# - su -m lool -c 'env HOME=/tmp/loolhome gmake check'