sudo: false

services:
    - docker

env:
    - distro: debian
    - distro: archlinux

before_install:
    - docker pull alexays/waybar:${distro}

script:
    - echo FROM alexays/waybar:${distro} > Dockerfile
    - echo ADD . /root >> Dockerfile
    - docker build -t waybar .
    - docker run waybar /bin/sh -c "cd /root && git clone https://github.com/swaywm/wlroots subprojects/wlroots && meson build && ninja -C build"