image: alpine/edge
packages:
  - cargo
  - clang17-libclang
  - cmake
  - ninja
  - pcre2-dev
  - py3-pexpect
  - python3
  - rust
  - tmux
sources:
  - https://github.com/fish-shell/fish-shell
tasks:
  - build: |
          cd fish-shell
          mkdir build
          cd build
          cmake -G Ninja .. \
            -DCMAKE_INSTALL_PREFIX=/usr \
            -DCMAKE_INSTALL_DATADIR=share \
            -DCMAKE_INSTALL_DOCDIR=share/doc/fish \
            -DCMAKE_INSTALL_SYSCONFDIR=/etc
          ninja
  - test: |
          cd fish-shell/build
          env ninja test