Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud_hpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
HPC
cloud_hpc
Commits
41efa18a
Verified
Commit
41efa18a
authored
2 months ago
by
Paul Gierz
Browse files
Options
Downloads
Patches
Plain Diff
ci: try to build in gitlab pages
parent
cb7a539d
No related branches found
No related tags found
No related merge requests found
Pipeline
#16121
failed
2 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-29
3 additions, 29 deletions
.gitlab-ci.yml
with
3 additions
and
29 deletions
.gitlab-ci.yml
+
3
−
29
View file @
41efa18a
...
@@ -7,47 +7,26 @@
...
@@ -7,47 +7,26 @@
# Official language image. Look for the different tagged releases at:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
# https://hub.docker.com/r/library/python/tags/
image
:
python:latest
image
:
python:latest
# Change pip's cache directory to be inside the project directory since we can
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
# only cache local items.
variables
:
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# https://pip.pypa.io/en/stable/topics/caching/
# https://pip.pypa.io/en/stable/topics/caching/
cache
:
cache
:
paths
:
paths
:
-
.cache/pip
-
.cache/pip
before_script
:
before_script
:
-
python --version ; pip --version
# For debugging
-
python --version ; pip --version
# For debugging
-
pip install virtualenv
-
pip install virtualenv
-
virtualenv venv
-
virtualenv venv
-
source venv/bin/activate
-
source venv/bin/activate
test
:
tags
:
-
docker
script
:
-
pip install ruff tox
# you can also use tox
-
pip install --editable ".[test]"
-
tox -e py,ruff
run
:
tags
:
-
docker
script
:
-
pip install .
# run the command here
artifacts
:
paths
:
-
build/*
pages
:
pages
:
tags
:
tags
:
-
docker
-
docker
script
:
script
:
-
pip install sphinx sphinx-rtd-theme
-
pip install sphinx sphinx-rtd-theme
-
cd doc
-
jupyter-book config sphinx docs/
-
cd docs
-
make html
-
make html
-
mv build/html/ ../public/
-
mv build/html/ ../public/
artifacts
:
artifacts
:
...
@@ -55,8 +34,3 @@ pages:
...
@@ -55,8 +34,3 @@ pages:
-
public
-
public
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
deploy
:
stage
:
deploy
script
:
echo "Define your deployment script!"
environment
:
production
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