Commit 56bc8013 authored by Florent Chehab's avatar Florent Chehab
Browse files

Test new CI

parent 58abc00d
Pipeline #36159 canceled with stage
in 17 seconds
image: blang/latex build:
image: blang/latex
building-latex-master:
stage: build 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
- bash build.sh make
artifacts: artifacts:
paths: paths:
- main.pdf - deploy
- latex-rapport-UTC.zip
- main-0.png expire_in: 1 hour
- main-1.png # only:
# - master
expire_in: 2 year
only:
- master
tags: tags:
- docker - docker
pages:
building-latex-other-branch: stage: deploy
stage: build dependencies:
- build
script: script:
- apt-get update --yes - mv deploy public
- apt-get install imagemagick --yes
- apt-get install wget --yes
- bash build.sh get_assets
- bash build.sh make
artifacts: artifacts:
paths: paths:
- main.pdf - public
- latex-rapport-UTC.zip expire_in: 1 month
- main-0.png only:
- main-1.png
expire_in: 2 week
except:
- master - master
tags: tags:
- docker - docker
\ No newline at end of file
...@@ -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