Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MeanFi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantum Tinkerer
MeanFi
Commits
6aa7bd74
Commit
6aa7bd74
authored
2 years ago
by
Antonio Manesco
Browse files
Options
Downloads
Patches
Plain Diff
nuke all the CI content because we don't use any of these things rn
parent
d66443b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#133133
failed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-58
0 additions, 58 deletions
.gitlab-ci.yml
with
0 additions
and
58 deletions
.gitlab-ci.yml
+
0
−
58
View file @
6aa7bd74
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment