CI: add FreeBSD job

pull/425/head
Jan Beich 2020-05-17 09:06:44 +00:00
parent 1885ecc958
commit 4f646543fc
1 changed files with 47 additions and 20 deletions

View File

@ -1,24 +1,51 @@
sudo: false
services:
- docker
git: git:
submodules: false submodules: false
env: _linux_shared: &linux_shared
- distro: debian os: linux
- distro: archlinux sudo: false
- distro: fedora services:
- distro: alpine - docker
- distro: opensuse before_install:
- docker pull alexays/waybar:${distro}
- find . -type f \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -r0 clang-format -i
script:
- echo FROM alexays/waybar:${distro} > Dockerfile
- echo ADD . /root >> Dockerfile
- docker build -t waybar .
- docker run waybar /bin/sh -c "cd /root && meson build -Dman-pages=enabled && ninja -C build"
before_install: jobs:
- docker pull alexays/waybar:${distro} include:
- find . -type f \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -r0 clang-format -i - <<: *linux_shared
env: distro=debian
script: - <<: *linux_shared
- echo FROM alexays/waybar:${distro} > Dockerfile env: distro=archlinux
- echo ADD . /root >> Dockerfile - <<: *linux_shared
- docker build -t waybar . env: distro=fedora
- docker run waybar /bin/sh -c "cd /root && meson build -Dman-pages=enabled && ninja -C build" - <<: *linux_shared
env: distro=alpine
- <<: *linux_shared
env: distro=opensuse
- os: freebsd
language: cpp
compiler: clang
addons:
pkg:
branch: latest
packages:
- date
- gtk-layer-shell
- gtkmm30
- jsoncpp
- libdbusmenu
- libfmt
- libmpdclient
- libudev-devd
- meson
- pulseaudio
- scdoc
- spdlog
script:
- meson build -Dman-pages=enabled
- ninja -C build