Commit eab1ae39 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

docs: support CI and local doc building, modify CI pages stage triggering conditions

parent 2dd61fbf
Pipeline #204450 failed with stages
in 4 minutes and 22 seconds
......@@ -418,7 +418,7 @@ pages:
# build docs
- mkdir -p public/
- cd doc; make html
- cd doc; make html IS_CI=1
# save doc artifacts
- cd ..; cp -rf doc/_build/* public/
......@@ -428,12 +428,8 @@ pages:
paths:
- public
only:
- master@lscsoft/gstlal
- schedules
except:
- web
- pushes
#only:
# - master@lscsoft/gstlal
# - schedules
#except:
# - web
# - pushes
#allow_failure: true
IS_CI ?= 0
gstlal-modules :
# FIXME FIXME FIXME total hack to work around unique python packaging
mv ../gstlal/python/__init__.py ../gstlal/python/__init__.py.bk
if [ $(IS_CI) = 0 ]; then \
mv ../gstlal/python/__init__.py ../gstlal/python/__init__.py.bk; \
fi
sphinx-apidoc -e -o source/gstlal/python-modules ../gstlal/python ../gstlal/python/misc.py ../gstlal/python/bottle.py ../gstlal/python/coherent_null.py ../gstlal/python/matplotlibhelper.py
mv ../gstlal/python/__init__.py.bk ../gstlal/python/__init__.py
if [ $(IS_CI) = 0 ]; then \
mv ../gstlal/python/__init__.py.bk ../gstlal/python/__init__.py; \
fi
sed -i "1s/python/\`\`gstlal\`\`/" source/gstlal/python-modules/modules.rst
gstlal-inspiral-modules :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment