Commit d15355a1 authored by André Anjos's avatar André Anjos 💬

Merge branch 'bob-devtools' into 'master'

Port package to new bob.devtools-based build system (c.f. bob/docs#7)

See merge request !10
parents 88b4e351 49789d13
Pipeline #31579 passed with stages
in 6 minutes and 51 seconds
......@@ -15,3 +15,4 @@ doc/extra-intersphinx.txt
doc/nitpick-exceptions.txt
eggs/
sphinx/
.DS_Store
# This build file uses template features from YAML so it is generic enough for
# any Bob project. Don't modify it unless you know what you're doing.
# Definition of global variables (all stages)
variables:
CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
# Definition of our build pipeline order
stages:
- build
- deploy
# Build targets
.build_template: &build_job
stage: build
before_script:
- mkdir _ci
- curl --silent "https://gitlab.idiap.ch/bob/bob.admin/raw/master/gitlab/install.sh" > _ci/install.sh
- chmod 755 _ci/install.sh
- ./_ci/install.sh _ci master #installs ci support scripts
- ./_ci/before_build.sh
- ./before_build.sh
script:
- ./_ci/build.sh
after_script:
- ./_ci/after_build.sh
cache: &build_caches
paths:
- miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2
- ${CONDA_ROOT}/pkgs/urls.txt
.build_macosx_template: &macosx_build_job
<<: *build_job
tags:
- macosx
artifacts:
expire_in: 1 week
paths:
- _ci/
- ${CONDA_ROOT}/conda-bld/osx-64/*.tar.bz2
cache:
<<: *build_caches
key: "macosx-cache"
build_macosx_36:
<<: *macosx_build_job
variables:
GITLAB_CHECKOUT_STRATEGY: "https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/"
PYTHON_VERSION: "3.6"
BUILD_EGG: "true"
artifacts:
expire_in: 1 week
paths:
- _ci/
- sphinx
# Deploy targets
.deploy_template: &deploy_job
stage: deploy
before_script:
- ./_ci/install.sh _ci master #updates ci support scripts
script:
- ./_ci/deploy.sh
dependencies:
- build_macosx_36
tags:
- deployer
deploy_beta:
<<: *deploy_job
environment: beta
only:
- master
deploy_stable:
<<: *deploy_job
environment: stable
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- branches
include: 'https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/data/gitlab-ci/docs.yaml'
#!/usr/bin/env bash
set -ex
# to fix cloning in docker images
GITLAB_CHECKOUT_STRATEGY="${GITLAB_CHECKOUT_STRATEGY:-git@gitlab.idiap.ch:}"
# Clone all packages
for pkg in `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do
git clone --depth 1 ${GITLAB_CHECKOUT_STRATEGY}beat/${pkg}.git doc/$pkg || \
{ git -C doc/$pkg reset --hard HEAD && \
git -C doc/$pkg checkout master && \
git -C doc/$pkg pull; }
if [[ -n "${CI_COMMIT_TAG}" ]]; then
git -C doc/$pkg fetch --tags
tag=`git -C doc/$pkg tag --sort='v:refname' | grep -e 'v[0-9]*\.[0-9]*\.[0-9]*$' | tail -n 1`
git -C doc/$pkg checkout $tag
fi
done
# Create extra-intersphinx.txt
# Add newlines in the end of files
# remove beat
# remove comments
# remove trailing whitespace
sed -e '$s/$/\n/' \
-e '/^beat/d' \
-e 's:#.*$::g' \
-e 's/[[:space:]]*$//' \
doc/*/doc/extra-intersphinx.txt \
doc/*/requirements.txt \
doc/*/test-requirements.txt \
| sort -u > doc/extra-intersphinx.txt
# Create nitpick-exceptions.txt
# Add newlines in the end of files
# remove comments
# remove trailing whitespace
sed -e '$s/$/\n/' \
-e 's:#.*$::g' \
-e 's/[[:space:]]*$//' \
doc/*/doc/nitpick-exceptions.txt \
| sort -u > doc/nitpick-exceptions.txt
......@@ -12,7 +12,7 @@ requirements:
run:
- python
- setuptools
# this should be the same as requirements.txt
# this should be the same as packages.txt
- beat.core
- beat.cmdline
- beat.backend.python
......
......@@ -35,7 +35,7 @@ extensions = [
plot_basedir = None
# Be picky about warnings
nitpicky = True
nitpicky = False
# Ignores stuff we can't easily resolve on other project's sphinx manuals
nitpick_ignore = []
......
......@@ -40,12 +40,12 @@ Index of all Packages
:maxdepth: 1
:titlesonly:
beat <beat/index.rst>
beat.core <beat.core/doc/index.rst>
beat.cmdline <beat.cmdline/doc/index.rst>
beat.backend.python <beat.backend.python/doc/index.rst>
beat.editor <beat.editor/doc/index.rst>
beat.web <beat.web/doc/index.rst>
beat <intro/index.rst>
beat.core <beat/beat.core/doc/index.rst>
beat.cmdline <beat/beat.cmdline/doc/index.rst>
beat.backend.python <beat/beat.backend.python/doc/index.rst>
beat.editor <beat/beat.editor/doc/index.rst>
beat.web <beat/beat.web/doc/index.rst>
readme_index.rst
.. include:: links.rst
......@@ -7,8 +7,8 @@ README of all Packages
:maxdepth: 1
:titlesonly:
beat.core <beat.core/README.rst>
beat.cmdline <beat.cmdline/README.rst>
beat.backend.python <beat.backend.python/README.rst>
beat.editor <beat.editor/README.rst>
beat.web <beat.web/README.rst>
beat.core <beat/beat.core/README.rst>
beat.cmdline <beat/beat.cmdline/README.rst>
beat.backend.python <beat/beat.backend.python/README.rst>
beat.editor <beat/beat.editor/README.rst>
beat.web <beat/beat.web/README.rst>
beat/beat.backend.python
beat/beat.core
beat/beat.cmdline
beat/beat.editor
beat/beat.web
This diff is collapsed.
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