Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Thesis
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
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
luke naylor latex documents
research
Thesis
Commits
a45e9013
Commit
a45e9013
authored
1 year ago
by
Luke Naylor
Browse files
Options
Downloads
Patches
Plain Diff
Introduce 2 step CI compilation with soft link manipulation
parent
2408cdee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
Makefile
+15
-3
15 additions, 3 deletions
Makefile
with
20 additions
and
5 deletions
.gitignore
+
3
−
1
View file @
a45e9013
...
...
@@ -4,4 +4,6 @@ sagetex.sty
sage-plots-for-main.tex/
dependency-newcommands.tex
dependency-packages.tex
tilt.rs
\ No newline at end of file
tilt.rs
appendix.tex
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
1
View file @
a45e9013
...
...
@@ -10,8 +10,9 @@ build:
-
source /root/.bashrc
-
sage -pip install "pseudowalls==0.0.3" --extra-index-url https://gitlab.com/api/v4/projects/43962374/packages/pypi/simple
-
make tilt.rs
-
make blank-appendix
-
latexmk -use-make
-
sed -i -e '1s/^/\\def\\notebookappendix{} /' main.te
x
-
make nb-appendi
x
-
latexmk -use-make
artifacts
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
15
−
3
View file @
a45e9013
...
...
@@ -9,14 +9,16 @@ BIBFILES = $(addsuffix /references.bib, ${CHAPTERDIRS})
SAGESCRIPT
=
main.sagetex.sage
main.pdf
:
${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout tilt.rs notebook_tex
SAGEARTIFACT
=
main.sagetex.sout
main.pdf
:
${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} ${SAGEARTIFACT} tilt.rs notebook_tex
latexmk
||
echo
this fails but seems to produce pdf correctly
main.sagetex.sout
:
${SAGESCRIPT} chapter_py_libs
${SAGEARTIFACT}
:
${SAGESCRIPT} chapter_py_libs
PYTHONPATH
=
`
echo
$(
CHAPTERDIRS
)
|
sed
's/ \+/:/g'
`
sage
${
SAGESCRIPT
}
${SAGESCRIPT}
:
${TEXFILES}
latexmk
\$
max_repeat
=
<1>
||
echo
this is meant to fail
latexmk
||
echo
this is meant to fail
# seems to be a bug with sagetex, only works if patched:
sed
-i
-e
's;version_check=)$$;version_check=True);'
$@
...
...
@@ -40,9 +42,19 @@ chapter_py_libs:
$(
MAKE
)
-C
$$
dir
notebook_py_libs
;
\
done
# SYMBOLIC LINKS
tilt.rs
:
ln
-s
max-destabilizer-rank/tilt.rs/ tilt.rs
blank-appendix
:
rm
appendix.tex
||
echo
appendix non-existent
ln
-s
/dev/null appendix.tex
nb-appendix
:
rm
appendix.tex
||
echo
appendix non-existent
ln
-s
notebook-appendix.tex appendix.tex
# TEX FILES FROM NOTEBOOKS
define
NOTEBOOK_TO_TEX_RULE
...
...
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