arch: null artifacts: [] environment: BUILD_SUBMITTER: git.sr.ht GIT_REF: refs/heads/fix-doc image: ubuntu/lts packages: - python3-pip repositories: {} secrets: - 69332acb-b779-4bb2-ae8a-719f8e150ace shell: false sources: - https://git.sr.ht/~tfardet/OrgMatt#bd67bf14af3e9df5ab2a02a0b5766f6172b9de3f tasks: - path: | echo 'export PATH=$PATH:/home/build/.local/bin' >> /home/build/.buildenv - check: | pip3 install reuse cd OrgMatt reuse lint - setup: | cd OrgMatt pip3 install --upgrade pip pytest setuptools pip install -r requirements.txt pip install coverage pip install . - test: | cd OrgMatt coverage run -m pytest tests coverage report -m - doc: | cd OrgMatt GIT_BRANCH=$(git show -s --pretty=%D HEAD | tr -s ', /' '\n' | grep -v HEAD | sed -n 2p) GIT_TAG=$(echo "$GIT_REF" | grep "^v[0-9]\.[0-9]*\.[0-9]$" || echo "") set +x . ~/.rtd-orgmatt if [ "$GIT_BRANCH" == "$GIT_TAG" ] then curl -X POST -d "branches=$GIT_TAG" -d "token=$rtd_om_token" https://readthedocs.org/api/v2/webhook/orgmatt/214036/ elif [ "$GIT_BRANCH" == "main" ] then curl -X POST -d "branches=main" -d "token=$rtd_om_token" https://readthedocs.org/api/v2/webhook/orgmatt/214036/ fi triggers: [] oauth: ""