.gitlab-ci.yml 900 Bytes
Newer Older
Tantet Alexis (M.)'s avatar
test ci  
Tantet Alexis (M.) committed
1
image: python:3.8
Tantet Alexis (M.)'s avatar
Tantet Alexis (M.) committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
  paths:
    - .cache/pip
    - venv/

before_script:
  - python -V  # Print out python version for debugging
  - pip install virtualenv
  - virtualenv venv
  - source venv/bin/activate

pages:
  script:
    - pip install -r requirements.txt
Tantet Alexis (M.)'s avatar
Tantet Alexis (M.) committed
27
    - pip install 'sphinxcontrib-bibtex==2.0.0' 'jupyter-book==0.8.3' 'Sphinx==3.4.1' 'sphinx_book_theme==0.0.39'
Tantet Alexis (M.)'s avatar
Tantet Alexis (M.) committed
28
    - bash cleanbuild_book.sh
Tantet Alexis (M.)'s avatar
Tantet Alexis (M.) committed
29 30 31 32 33 34
    - mv book/_build/html/ public/
  artifacts:
    paths:
      - public
  only:
    - master