image: ubuntu/lts
packages:
    - qtbase5-dev
    - qt5-qmake
    - qtbase5-dev-tools
    - libqt5svg5-dev
    - mandoc
sources:
    - https://github.com/cutechess/cutechess
tasks:
    - build: |
        cd cutechess
        qmake
        make
    - test_lib: |
        cd cutechess/projects/lib/tests
        qmake
        make
        make check
    - test_json: |
        cd cutechess/projects/lib/components/json/tests
        qmake
        make
        make check
    - test_manuals: |
        cd cutechess/docs
        mandoc -T lint cutechess-cli.6
        mandoc -T lint engines.json.5
