From 6aa7bd747f0ac9925aeac25266d40ca959ba912e Mon Sep 17 00:00:00 2001 From: antoniolrm <am@antoniomanesco.org> Date: Thu, 23 Mar 2023 10:20:42 +0100 Subject: [PATCH] nuke all the CI content because we don't use any of these things rn --- .gitlab-ci.yml | 58 -------------------------------------------------- 1 file changed, 58 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc8cbe3..ce94e11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,59 +1 @@ image: gitlab.kwant-project.org:5005/qt/research-docker - -stages: - - run analysis - - build documents - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -before_script: - - shopt -s nullglob # sane behaviour when globs do not match - - pip install gitlab-ci-tools # for last-good-build - - LAST_GOOD_SHA=$(last-good-build || echo '') - -.pdf-build: - stage: build documents - script: - - cd $CWD - - if [ -d images ]; then - - cd images - - for image in *.svg; do - - inkscape -o "${image%.*}.pdf" $image - - done - - cd .. - - fi - - for tex in *.tex; do - - if grep "documentclass" $tex >/dev/null; then - - latexmk -pdf $tex - - DIFF="$(git diff $LAST_GOOD_SHA -- $tex || echo '')" - - OLD_EXISTS="$(git ls-tree --name-only $LAST_GOOD_SHA | grep -x $tex || echo '')" - - if [ "$LAST_GOOD_SHA" ] && [ "$DIFF" ] && [ "$OLD_EXISTS" ]; then - - git show $LAST_GOOD_SHA:$CWD/$tex > old_$tex - - latexdiff old_$tex $tex > diff_$tex || true - - rm old_$tex - - latexmk -pdf diff_$tex || true - - fi - - fi - - done - -build notes: - extends: .pdf-build - variables: - CWD: notes - artifacts: - paths: - - notes/*.pdf - expire_in: 1 month - -build publication: - extends: .pdf-build - variables: - CWD: publication - after_script: - - mkdir -p public && cp -r $CWD/*.pdf public - artifacts: - paths: - - publication/*.pdf - expire_in: 1 month - stage: build documents -- GitLab