Skip to content
Snippets Groups Projects
Commit 1e31aeff authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Move to the new CI format

parent 3961d4dd
No related branches found
No related tags found
1 merge request!1Move to the new CI format
Pipeline #
# Definition of our build pipeline # 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: stages:
- build - build
- deploy - deploy
# ---------
# Templates
# ---------
# Template for the build stage # Build targets
# Needs to run on all supported architectures, platforms and python versions
.build_template: &build_job .build_template: &build_job
stage: build stage: build
before_script: before_script:
- ./before_build.sh - 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 - ./_ci/before_build.sh
- ./before_build.sh
script: script:
- ./_ci/build.sh - ./_ci/build.sh
after_script: after_script:
- ./_ci/after_build.sh - ./_ci/after_build.sh
artifacts: cache: &build_caches
expire_in: 1 week
paths: paths:
- sphinx/ - miniconda.sh
- ${CONDA_ROOT}/pkgs/*.tar.bz2
- ${CONDA_ROOT}/pkgs/urls.txt
# Template for (latest) documentation upload stage .build_linux_template: &linux_build_job
# Only one real job needs to do this <<: *build_job
.docs_template: &docs_job tags:
stage: deploy - docker
environment: intranet image: continuumio/conda-concourse-ci
only: artifacts:
- master expire_in: 1 week
before_script: paths:
- ./_ci/before_docs.sh - _ci/
script: - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
- ./_ci/docs.sh cache:
after_script: <<: *build_caches
- ./_ci/after_docs.sh key: "linux-cache"
# Linux + Python 3.6
build_linux_36: build_linux_36:
<<: *build_job <<: *linux_build_job
variables: &linux_36_build_variables variables:
PYTHON_VERSION: "3.6" PYTHON_VERSION: "3.6"
WHEEL_TAG: "py3" BUILD_EGG: "true"
tags: artifacts:
- conda-linux expire_in: 1 week
paths:
- _ci/
- sphinx
- ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
docs_linux_36: # Deploy targets
<<: *docs_job .deploy_template: &deploy_job
variables: *linux_36_build_variables stage: deploy
before_script:
- ./_ci/install.sh _ci master #updates ci support scripts
script:
- ./_ci/deploy.sh
dependencies: dependencies:
- build_linux_36 - build_linux_36
tags: tags:
- conda-linux - 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
******************************************
Bob's Documentation Aggregation Repository
******************************************
This repository will build the documentation of all Bob packages at the same This repository will build the documentation of all Bob packages at the same
time. time.
Adding a new package
====================
To add a new package:
* Make sure the package is **public** first. Do not add private packages here.
* Add it in ``conda/meta.yaml``.
* Add it in ``doc/index.rst``.
* If it plots something using matplotlib during its documentation generation,
make sure you add a symlink for it in the docs folder.
{% set name = 'docs' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package:
name: {{ name }}
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}
build:
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
requirements:
run:
- python
- setuptools
- bob.extension
- bob.blitz
- bob.core
- bob.io.base
- bob.sp
- bob.ap
- bob.math
- bob.measure
- bob.io.image
- bob.db.base
- bob.io.video
- bob.io.matlab
- bob.io.audio
- bob.ip.base
- bob.ip.color
- bob.ip.draw
- bob.ip.gabor
- bob.learn.activation
- bob.learn.libsvm
- bob.learn.linear
- bob.learn.mlp
- bob.learn.em
- bob.learn.boosting
- bob.db.iris
- bob.db.wine
- bob.db.mnist
- bob.db.atnt
- bob.ip.facedetect
- bob.ip.optflow.hornschunck
- bob.ip.optflow.liu
- bob.ip.flandmark
- bob
- gridtk
- bob.ip.qualitymeasure
- bob.ip.skincolorfilter
- bob.ip.facelandmarks
- bob.ip.dlib
- bob.db.arface
- bob.db.asvspoof
- bob.db.asvspoof2017
- bob.db.atvskeystroke
- bob.db.avspoof
- bob.db.banca
- bob.db.biosecure
- bob.db.biosecurid.face
- bob.db.casme2
- bob.db.caspeal
- bob.db.cohface
- bob.db.frgc
- bob.db.gbu
- bob.db.hci_tagging
- bob.db.ijba
- bob.db.kboc16
- bob.db.lfw
- bob.db.livdet2013
- bob.db.mobio
- bob.db.msu_mfsd_mod
- bob.db.multipie
- bob.db.nist_sre12
- bob.db.putvein
- bob.db.replay
- bob.db.replaymobile
- bob.db.scface
- bob.db.utfvp
- bob.db.verafinger
- bob.db.fv3d
- bob.db.voicepa
- bob.db.xm2vts
- bob.db.youtube
- bob.db.pericrosseye
- bob.db.cuhk_cufs
- bob.bio.base
- bob.bio.gmm
- bob.bio.face
- bob.bio.spear
- bob.bio.video
- bob.bio.vein
- bob.db.voxforge
- bob.pad.base
- bob.pad.face
test:
commands:
- sphinx-build {{ project_dir }}/doc {{ project_dir }}/sphinx
requires:
- bob-devel {{ bob_devel }}.*
- nose
- coverage
- sphinx
- sphinx_rtd_theme
about:
home: https://www.idiap.ch/software/bob/
license: BSD-3-Clause
summary: Bob's documentation aggregation repository
license_family: BSD
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
"""A package that builds all the documentations of Bob packages
"""
from setuptools import setup
# Define package version
version = open("version.txt").read().rstrip()
setup(
name="bob.docs",
version=version,
description="A package that builds all the documentations of Bob packages",
url='http://gitlab.idiap.ch/bob/docs',
license="BSD",
author='Amir Mohammadi',
author_email='amir.mohammadi@idiap.ch',
long_description=open('README.rst').read(),
packages=None,
include_package_data=True,
zip_safe=False,
classifiers=[
'Framework :: Bob',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
0.0.1 2018.02.21b0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment