Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
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
ift
resolve
Commits
50f3768c
Commit
50f3768c
authored
4 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation build
parent
9ebd6519
No related branches found
No related tags found
1 merge request
!19
Export
Pipeline
#103471
canceled
4 years ago
Stage: build_docker
Stage: testing
Stage: release
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+16
-6
16 additions, 6 deletions
.gitlab-ci.yml
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
docs/generate.sh
+2
-0
2 additions, 0 deletions
docs/generate.sh
docs/source/conf.py
+27
-0
27 additions, 0 deletions
docs/source/conf.py
docs/source/index.rst
+17
-0
17 additions, 0 deletions
docs/source/index.rst
with
64 additions
and
7 deletions
.gitlab-ci.yml
+
16
−
6
View file @
50f3768c
...
...
@@ -6,6 +6,7 @@ variables:
stages
:
-
build_docker
-
testing
-
release
build_docker_from_scratch
:
only
:
...
...
@@ -31,10 +32,12 @@ build_docker_from_cache:
-
docker build -t $CONTAINER_TEST_IMAGE .
-
docker push $CONTAINER_TEST_IMAGE
before_script
:
-
pip3 install --user .
mytest
:
stage
:
testing
script
:
-
pip3 install .
-
pytest-3 -q --cov=resolve test
coverage
:
'
/^TOTAL.+?(\d+\%)$/'
...
...
@@ -43,10 +46,17 @@ test_mpi:
variables
:
OMPI_MCA_btl_vader_single_copy_mechanism
:
none
script
:
-
pip3 install .
-
mpiexec -n 2 --bind-to none pytest-3 -q test/test_mpi
# staticchecks:
# stage: testing
# script:
# - flake8 .
pages
:
stage
:
release
script
:
-
rm -rf docs/build docs/source/mod
-
sh docs/generate.sh
-
mv docs/build public
artifacts
:
paths
:
-
public
# only:
# - master
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
1
View file @
50f3768c
...
...
@@ -13,7 +13,8 @@ RUN pip3 install astropy
RUN
apt-get
install
-qq
python3-mpi4py
# Testing dependencies
RUN
apt-get
install
-qq
python3-pytest-cov
RUN
pip3
install
flake8
# Documentation dependencies
RUN
apt-get
install
-qq
python3-sphinx-rtd-theme
# Create user (openmpi does not like to be run as root)
RUN
useradd
-ms
/bin/bash testinguser
...
...
This diff is collapsed.
Click to expand it.
docs/generate.sh
0 → 100755
+
2
−
0
View file @
50f3768c
sphinx-apidoc
-e
-o
docs/source/mod resolve
sphinx-build
-b
html docs/source/ docs/build/
This diff is collapsed.
Click to expand it.
docs/source/conf.py
0 → 100644
+
27
−
0
View file @
50f3768c
extensions
=
[
'
sphinx.ext.napoleon
'
,
# Support for NumPy and Google style docstrings
'
sphinx.ext.imgmath
'
,
# Render math as images
'
sphinx.ext.viewcode
'
# Add links to highlighted source code
]
master_doc
=
'
index
'
napoleon_google_docstring
=
False
napoleon_numpy_docstring
=
True
napoleon_use_ivar
=
True
napoleon_use_admonition_for_notes
=
True
napoleon_use_admonition_for_examples
=
True
napoleon_use_admonition_for_references
=
True
napoleon_include_special_with_doc
=
True
project
=
u
'
resolve
'
copyright
=
u
'
2019-2021, Max-Planck-Society
'
author
=
u
'
Philipp Arras
'
# FIXME release = resolve.version.__version__
# FIXME version = release[:-2]
language
=
None
exclude_patterns
=
[]
add_module_names
=
False
html_theme
=
"
sphinx_rtd_theme
"
This diff is collapsed.
Click to expand it.
docs/source/index.rst
0 → 100644
+
17
−
0
View file @
50f3768c
Resolve
=======
Resolve is a Bayesian radio imaging algorithm.
References
----------
FIXME
Contents
........
.. toctree::
:maxdepth: 2
Package Documentation <mod/resolve>
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