Commit c9e3d969 authored by Florent Chehab's avatar Florent Chehab
Browse files

Test new CI

parent 58abc00d
Pipeline #36163 failed with stage
in 20 seconds
image: blang/latex pages:
image: blang/latex
building-latex-master:
stage: build
script: script:
- apt-get update --yes - apt-get update --yes
- apt-get install imagemagick --yes - apt-get install imagemagick --yes
- apt-get install wget --yes - make prepare_deploy
- bash build.sh get_assets - mv deploy public
- bash build.sh make
artifacts: artifacts:
paths: paths:
- main.pdf - public
- latex-rapport-UTC.zip expire_in: 1 hour
- main-0.png # only:
- main-1.png # - master
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
tags: tags:
- docker - docker
\ No newline at end of file
[submodule "Graphismes-UTC"] [submodule "Graphismes-UTC"]
path = Graphismes-UTC path = Graphismes-UTC
url = git@gitlab.utc.fr:LaTeX-UTC/Graphismes-UTC.git url = ../../Graphismes-UTC.git
...@@ -5,7 +5,6 @@ default: ...@@ -5,7 +5,6 @@ default:
preview: default preview: default
convert -density 150 main.pdf -quality 90 main.png convert -density 150 main.pdf -quality 90 main.png
rm -rf export *.png *.zip
archive: archive:
rm -rf build rm -rf build
...@@ -16,6 +15,12 @@ archive: ...@@ -16,6 +15,12 @@ archive:
cd build && zip -r ../latex-rapport-UTC.zip * 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: clean:
latexmk -C 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