Skip to content
Snippets Groups Projects
Commit a0f1e16a authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Final fix.

parent eb3adf29
Branches
No related tags found
No related merge requests found
Pipeline #23734 passed
......@@ -11,7 +11,7 @@ stages:
variables:
AUTHPASSWORD: "example" # change to "" (empty string) to disable authentication
# username is always "review" (without quotes)
CI_REF: &ref a5f020a655453149d99aebce9825cc93114eb233
CI_REF: &ref e9227a8c6359ba4d650a5b967a8a7e43fbc65e27
BUILD_ARGS: " | -d "
include:
......@@ -49,10 +49,10 @@ include:
ref: *ref
# BUILD
# # https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex/build.yml
# - project: "templates/ci-snippets"
# file: "latex/build.yml"
# ref: *ref
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex/build.yml
- project: "templates/ci-snippets"
file: "latex/build.yml"
ref: *ref
# TEST
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex-report/embedded-fonts.yml
......@@ -88,65 +88,12 @@ include:
file: "latex/artifacts.yml"
ref: *ref
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex-report/export-arxiv.yml
- project: "templates/ci-snippets"
file: "latex-report/export-arxiv.yml"
ref: *ref
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex/pages.yml
- project: "templates/ci-snippets"
file: "latex/pages.yml"
ref: *ref
build:
image: dbogatov/docker-images:latex-latest
stage: build
script:
- IFS='|' read -r -a args <<< "$BUILD_ARGS"
- |
if [ ${#args[@]} -eq 0 ]
then
args="${args:-' '}"
fi
- |
for arg in "${args[@]}"
do
echo Building for "build.sh $arg"
bash ./$LATEX_BUILD/build.sh $arg
cp $LATEX_DIST/*.bbl .
done
- PAGES=$(wget -q -O - https://git.dbogatov.org/templates/ci-snippets/raw/master/page-count.sh | bash /dev/stdin ${PWD}/$LATEX_DIST/)
- |
echo "Max pages: $PAGES"
- echo "PAGES_COUNT=$PAGES" >> pages-count.env
artifacts:
expire_in: 30 min
paths:
- "$LATEX_DIST/*.pdf"
- $LATEX_DEFAULT_JOB.bbl
reports:
dotenv: pages-count.env
rules:
- if: "$DISABLE_REGULAR_PIPELINE"
when: never
- when: on_success
tags:
- docker
export-arxiv:
stage: release
image: dbogatov/docker-images:alpine-extras-latest
variables:
EXPORT_DIR: export-arxiv
script:
- rm -rf $LATEX_DIST
- mkdir $EXPORT_DIR
- cp -r $LATEX_SRC/* $EXPORT_DIR
- cp $LATEX_DEFAULT_JOB.bbl $EXPORT_DIR/main.bbl
- zip -r $EXPORT_DIR.zip $EXPORT_DIR
dependencies:
- build
artifacts:
paths:
- $EXPORT_DIR.zip
rules:
- if: "$DISABLE_REGULAR_PIPELINE"
when: never
- when: on_success
tags:
- docker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment