image: archlinux
sources:
  - https://github.com/mahkoh/jay
tasks:
  - packages: |
      echo 'Server = https://mirrors.n-ix.net/archlinux/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
  - install: |
      sudo pacman -Syu --noconfirm
      sudo pacman -S --noconfirm rustup libinput pango mesa xorg-xwayland adwaita-icon-theme libxcursor
      rustup toolchain install stable
      cd jay
      git submodule update --init
  - test: |
      cd jay
      cargo test
  - test-tc: |
      cd jay
      git submodule update --init
      cd toml-config
      cargo test
