Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f9d3f6c9 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

Use time machine instead of fixed profile for Guix environments

parent c0f6fac6
No related branches found
No related tags found
No related merge requests found
Pipeline #779497 failed
......@@ -7,17 +7,6 @@ stages:
- build
- deploy # Create the report and deploy the Gitlab pages.
before_script:
# Use a fixed GUIX profile for maximum reproducibility:
- mkdir -p $HOME/.guix-extra/compose/
# - >
# guix pull --channels=.guix-extra/channels-compose-fixed.scm
# --profile=$HOME/.guix-extra/compose/guix --allow-downgrades
- export GUIX_PROFILE="$HOME/.guix-extra/compose/guix"
- . "$GUIX_PROFILE/etc/profile"
- mkdir -p public/
- guix describe --format=channels | tee public/channels.scm
buildrawlatex:
# We recommend NOT to use this feature and only rely on org.
# However, it is still possible to handle raw latex files,
......@@ -34,7 +23,7 @@ buildrawlatex:
# Publish the org content
- cd rawlatex
- guix shell --pure -m ../.guix-extra/manifest-compose.scm -- latexmk -pdf -xelatex -interaction=nonstopmode
- guix time-machine -C ../.guix-extra/channels-compose-fixed.scm -- shell --pure -m ../.guix-extra/manifest-compose.scm -- latexmk -pdf -xelatex -interaction=nonstopmode
- cd ..
# Make index of public folder:
......@@ -68,13 +57,13 @@ pages:
- mkdir -p public/
# Publish the org content
- guix shell --pure -m .guix-extra/manifest-compose.scm -- emacs --batch --no-init-file --load publish.el --funcall org-publish-all
- guix time-machine -C ../.guix-extra/channels-compose-fixed.scm -- shell --pure -m .guix-extra/manifest-compose.scm -- emacs --batch --no-init-file --load publish.el --funcall org-publish-all
# Make sitemap of public folder and point index.html to README.html is no index is there:
- >
for folder in $(find public/ -type d) ;
do
guix shell --pure tree -- tree -L 1 -H '.' --dirsfirst --noreport --charset utf-8 $folder > $folder/sitemaptree.html ;
guix time-machine -C ../.guix-extra/channels-compose-fixed.scm -- shell --pure tree -- tree -L 1 -H '.' --dirsfirst --noreport --charset utf-8 $folder > $folder/sitemaptree.html ;
sed -i 's/href=".">.</href="..">..</g' $folder/sitemaptree.html ;
cd $folder
if [ ! -e index.html -a -e README.html ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment