Commit a5ddda6c authored by Sébastien Villemot's avatar Sébastien Villemot

Various improvements to Gitlab CI jobs

– no longer use a dedicated runner
– use the bundler from the Debian package
— store the gems in a per-project/per-branch cache, instead of globally for all
  runner users
parent b4f1cdd4
# Assumes ruby-dev, ruby-bundle, jq and LaTeX are installed in the runner.
# We do not use the Debian package for Jekyll because Buster has only 3.8.3
# (while we want at least 3.8.4).
variables:
GIT_SUBMODULE_STRATEGY: normal
TERM: linux
build:
stage: build
tags:
- jekyll
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
GEM_HOME: "$CI_PROJECT_DIR/.gem"
before_script:
- export LC_ALL="C.UTF-8"
- export LANG="en_US.UTF-8"
- export LANGUAGE="en_US.UTF-8"
- export GEM_HOME=$HOME/gems
- export PATH=$HOME/gems/bin:$PATH
- gem install jekyll
- gem install bundler
- (cd _data && wget https://www.dynare.org/RePEc/cpm/dynare/wp.yml)
- pwd
- ls -la
- bash setup-release.sh
- bash setup-snapshots.sh
- ./setup-release.sh
- ./setup-snapshots.sh
- bundle install
script:
- (cd assets/images/logo && make)
- bundle exec jekyll build
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .gem/
artifacts:
paths:
- _site
......
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