Skip to content
Snippets Groups Projects
Verified Commit 2d3598cf authored by Romain Deville's avatar Romain Deville
Browse files

:green_heart: Update pagoda CI template

parent 39271c6a
No related branches found
No related tags found
No related merge requests found
Pipeline #9409 passed with stages
in 10 minutes and 21 seconds
......@@ -56,7 +56,7 @@ variables:
# Before scripts anchors
# -----------------------------------------------------------------------------
# https://docs.gitlab.com/ee/ci/yaml/README.html#before_script
.before_script_python_dependencies: &before_script_python_dependencies
.before_script_python_dependencies_main: &before_script_python_dependencies_main
before_script:
# Add python dependencies
- apk update
......@@ -69,6 +69,10 @@ variables:
bash
git
gcc
libffi-dev
musl-dev
openssl-dev
cargo
# Create virtual environment
- virtualenv .venv
# Activate virtual environment
......@@ -138,7 +142,7 @@ test_tox_format_python:
<<: *tag_docker
<<: *image_docker
<<: *stage_test
<<: *before_script_python_dependencies
<<: *before_script_python_dependencies_main
script:
# Install python tox
- pip3 install tox
......@@ -149,7 +153,7 @@ test_tox_format_shell:
<<: *tag_docker
<<: *image_docker
<<: *stage_test
<<: *before_script_python_dependencies
<<: *before_script_python_dependencies_main
script:
# Install python tox
- pip3 install tox
......
......@@ -46,7 +46,7 @@ variables:
# Before scripts anchors
# -----------------------------------------------------------------------------
# https://docs.gitlab.com/ee/ci/yaml/README.html#before_script
.before_script_python_dependencies: &before_script_python_dependencies
.before_script_python_dependencies_docs: &before_script_python_dependencies_docs
# Add python dependencies
- apk update
# Install base package required for mkdocs builds
......@@ -261,7 +261,7 @@ test_build_local:
<<: *cache_python
<<: *stage_test
before_script:
- *before_script_python_dependencies
- *before_script_python_dependencies_docs
script:
# Install python test requirements
- pip3 install -r requirements.docs.txt
......@@ -277,7 +277,7 @@ test_build:
<<: *cache_python
<<: *stage_test
before_script:
- *before_script_python_dependencies
- *before_script_python_dependencies_docs
script:
# Install python test requirements
- pip3 install -r requirements.docs.txt
......@@ -292,7 +292,7 @@ build_html:
<<: *cache_python_pull
<<: *stage_build
before_script:
- *before_script_python_dependencies
- *before_script_python_dependencies_docs
script:
# Install python documentations requirements
- pip3 install -r requirements.docs.txt
......@@ -317,8 +317,13 @@ script_deploy_html: &script_deploy_html
script:
- git fetch --all
- export LAST_TAG="$(git describe --tags `git rev-list --tags --max-count=1`)"
- export LAST_TAG="${LAST_TAG/v/}"
- export LAST_TAG="${LAST_TAG%.*}"
- if [[ -z "${LAST_TAG}" ]]
then
export LAST_TAG="-1.-1"
else
export LAST_TAG="${LAST_TAG/v/}"
export LAST_TAG="${LAST_TAG%.*}"
fi
- |
case "${CI_DEPLOY_TYPE}" in
"dev")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment