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

Add a template file

parent c797a803
No related branches found
No related tags found
1 merge request!63Conda package based CI
......@@ -46,10 +46,10 @@ You also need to enable the following options on your project:
1. In the project "Settings" page, make sure builds are enabled
2. If you have a private project, check the package settings and make sure that
the "Deploy Keys" for our builders (all `conda-*` related servers) are
enabled
3. Visit the "Runners" section of your package settings and enable all conda
runners, for linux and macosx variants
the "Deploy Keys" for our builders (`runner/beat-macosx ` and `bpr-
facedemo`) are enabled.
3. Visit the "Runners" section of your package settings and enable all runners
with the `docker` and `macosx` tags.
4. Go into the "Variables" section of your package setup and **add common
variables** corresponding to the usernames and passwords for uploading
wheels and documentation tar balls to our (web DAV) server, as well as PyPI
......
......@@ -55,7 +55,7 @@ stages:
- _ci/
- ${CONDA_ENVS_PATH}/osx-64/*.tar.bz2
tags:
- conda-macosx
- macosx
variables: &macosx_variables
CONDA_FOLDER: "${CI_PROJECT_DIR}/${CONDA_ENVS_PATH}"
cache:
......
{% set name = environ.get('CI_PROJECT_NAME', '<PACKAGE>') %}
package:
name: {{ name }}
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}
build:
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
script:
- cd {{ environ.get('CI_PROJECT_DIR', environ.get('RECIPE_DIR') + '/..') }}
{% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip
{% endif %}
- pip install .
- sphinx-build -W doc $PREFIX/docs/{{ name }}
requirements:
build:
- python
- setuptools
- toolchain {{ toolchain }}
- sphinx
- sphinx_rtd_theme
# place extra build dependencies below this line:
- <BUILD_DEPS>
run:
- python
- setuptools
# place runtime dependencies below this line:
- <RUN_DEPS>
test:
imports:
- {{ name }}
commands:
- nosetests --with-coverage -sv {{ name }}
# The doctests will run only if "CI_PROJECT_DIR" is available as an
# environment variable. If you are testing locally, you can set it to the
# root of your project.
- sphinx-build -b doctest {{ environ.get('CI_PROJECT_DIR') }}/doc sphinx
requires:
- nose
- coverage
- sphinx
- sphinx_rtd_theme
# place extra test requirements below this line:
- <TEST_DEPS>
about:
home: https://www.idiap.ch/software/bob/
license: <LICENSE>
summary: <SHORT_DESCRIPTION>
license_family: <LICENSE_FAMILY>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment