Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.39 KiB
Newer Older
Jendrik's avatar
Jendrik committed
    name: pandoc/latex:latest
    - apk add --no-cache build-base python3 python3-dev py3-pip ttf-freefont
    - python3 -m venv .venv
    - source .venv/bin/activate
    - python3 -m pip install recipemd

check_filenames:
  allow_failure: true
  script:
    - apk add git
    - pip install unidecode
    - git status
    - git diff --exit-code >/dev/null # exit with 1 if there are renamed files
Jendrik's avatar
Jendrik committed
    - tlmgr update --self
Jendrik's avatar
Jendrik committed
    - tlmgr update --all
    # Please try to keep this list short and document the purpose of each package
    #
Jendrik's avatar
Jendrik committed
    #               syntax highlight                                required by pandoc's latex template
    #               |       dependency of fvextra                   |
    #               |       |      IPA        Chinese               |
    #               |       |      |          |    custom list      |
    #               |       |      |          |    |        compile |
    - tlmgr install fvextra lineno cm-unicode ctex enumitem latexmk selnolig
Jendrik's avatar
Jendrik committed
      - "*.pdf"
saxnot's avatar
saxnot committed

check_filesize:
  allow_failure: true
  script:
    - echo 'Overview of file sizes for debugging:'
    - find ./*.md -type f -exec du -a {} + | sort -n -r
    # grep fails when du reports a file above the threshold
    - du --threshold=-1MB *.md | grep -q ^