Commit 71605df7 authored by Florent Chehab's avatar Florent Chehab

Test new CI

parent 58abc00d
Pipeline #36164 passed with stages
in 24 seconds
image: blang/latex
variables:
GIT_SUBMODULE_STRATEGY: normal
building-latex-master:
stage: build
pages:
image: blang/latex
script:
- apt-get update --yes
- apt-get install imagemagick --yes
- apt-get install wget --yes
- bash build.sh get_assets
- bash build.sh make
- make prepare_deploy
- mv deploy public
artifacts:
paths:
- main.pdf
- latex-rapport-UTC.zip
- main-0.png
- main-1.png
expire_in: 2 year
only:
- master
tags:
- docker
building-latex-other-branch:
stage: build
script:
- apt-get update --yes
- apt-get install imagemagick --yes
- apt-get install wget --yes
- bash build.sh get_assets
- bash build.sh make
artifacts:
paths:
- main.pdf
- latex-rapport-UTC.zip
- main-0.png
- main-1.png
expire_in: 2 week
except:
- master
- public
expire_in: 1 hour
# only:
# - master
tags:
- docker
\ No newline at end of file
[submodule "Graphismes-UTC"]
path = Graphismes-UTC
url = git@gitlab.utc.fr:LaTeX-UTC/Graphismes-UTC.git
url = ../../Graphismes-UTC.git
......@@ -5,7 +5,6 @@ default:
preview: default
convert -density 150 main.pdf -quality 90 main.png
rm -rf export *.png *.zip
archive:
rm -rf build
......@@ -16,6 +15,12 @@ archive:
cd build && zip -r ../latex-rapport-UTC.zip *
prepare_deploy: preview archive
rm -rf deploy
mkdir deploy
cp main.pdf latex-rapport-UTC.zip main-0.png main-1.png deploy/
clean:
latexmk -C
rm -rf build *.png *.zip
rm -rf build deploy *.png *.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment