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: variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
TERM: linux TERM: linux
build: build:
stage: build stage: build
tags:
- jekyll
variables: variables:
JEKYLL_ENV: production 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: 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 jekyll
- gem install bundler
- (cd _data && wget https://www.dynare.org/RePEc/cpm/dynare/wp.yml) - (cd _data && wget https://www.dynare.org/RePEc/cpm/dynare/wp.yml)
- pwd - ./setup-release.sh
- ls -la - ./setup-snapshots.sh
- bash setup-release.sh
- bash setup-snapshots.sh
- bundle install - bundle install
script: script:
- (cd assets/images/logo && make) - (cd assets/images/logo && make)
- bundle exec jekyll build - bundle exec jekyll build
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .gem/
artifacts: artifacts:
paths: paths:
- _site - _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