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

Assume root dir is one above recipe. Make pip install more verbose

parent 5e0890ce
No related branches found
No related tags found
1 merge request!63Conda package based CI
{% set name = '<PACKAGE>' %} {% set name = '<PACKAGE>' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package: package:
name: {{ name }} name: {{ name }}
...@@ -8,11 +9,11 @@ build: ...@@ -8,11 +9,11 @@ build:
<ENTRY_POINTS> <ENTRY_POINTS>
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }} number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
script: script:
- cd {{ environ.get('CI_PROJECT_DIR', environ.get('RECIPE_DIR') + '/..') }} - cd {{ project_dir }}
{% if environ.get('BUILD_EGG') %} {% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip - python setup.py sdist --formats=zip
{% endif %} {% endif %}
- pip install . - pip install --verbose .
requirements: requirements:
build: build:
...@@ -31,11 +32,8 @@ test: ...@@ -31,11 +32,8 @@ test:
commands: commands:
<ENTRY_POINTS_TEST> <ENTRY_POINTS_TEST>
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
# The sphinx commands will run only if "CI_PROJECT_DIR" is available as an - sphinx-build -W {{ project_dir }}/doc {{ project_dir }}/sphinx
# environment variable. If you are testing locally, you can set it to the - sphinx-build -b doctest {{ project_dir }}/doc sphinx
# root of your project.
- sphinx-build -W {{ environ.get('CI_PROJECT_DIR') }}/doc {{ environ.get('CI_PROJECT_DIR') }}/sphinx
- sphinx-build -b doctest {{ environ.get('CI_PROJECT_DIR') }}/doc sphinx-test
requires: requires:
- nose - nose
- coverage - coverage
......
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