Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MKDocs Template
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PAGoDA
Tools
MKDocs Template
Commits
2d3598cf
Verified
Commit
2d3598cf
authored
4 years ago
by
Romain Deville
Browse files
Options
Downloads
Patches
Plain Diff
Update pagoda CI template
parent
39271c6a
No related branches found
No related tags found
No related merge requests found
Pipeline
#9409
passed with stages
Stage:
Stage:
Stage:
Stage:
Stage:
in 10 minutes and 21 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
user_config/.gitlab-ci.yml
+7
-3
7 additions, 3 deletions
user_config/.gitlab-ci.yml
user_config/docs/.gitlab-ci.yml
+11
-6
11 additions, 6 deletions
user_config/docs/.gitlab-ci.yml
with
18 additions
and
9 deletions
user_config/.gitlab-ci.yml
+
7
−
3
View file @
2d3598cf
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
user_config/docs/.gitlab-ci.yml
+
11
−
6
View file @
2d3598cf
...
...
@@ -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")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment