meta.yaml 1.84 KB
Newer Older
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
1
{% set name = 'bob.buildout' %}
2
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
3 4 5 6 7 8 9 10 11 12

package:
  name: {{ name }}
  version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}

build:
  number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
  run_exports:
    - {{ pin_subpackage(name) }}
  script:
13
    - cd {{ project_dir }}
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
14 15 16 17
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
18 19 20
    # installs the documentation source, readme to share/doc so it is available
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
21
    - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
22 23 24 25 26 27 28 29 30 31 32

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
    - zc.recipe.egg {{ zc_recipe_egg }}
  run:
    - python
    - setuptools
    - zc.recipe.egg
    - nose
33 34
    - pytest
    - pytest-cov
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
35 36
    - coverage
    - sphinx
37
    - sphinx_rtd_theme
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
38 39 40 41 42

test:
  imports:
    - {{ name }}
  commands:
43 44
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
    - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
André Anjos's avatar
André Anjos committed
45
    - sphinx-build -aEb doctest ${PREFIX}/share/doc/{{ name }}/doc sphinx
46 47 48
    # runs tests for package only, report only what is in the package
    # creates html and xml reports and place them in specific directories
    - pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
49 50 51 52 53 54
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]

about:
  home: https://www.idiap.ch/software/bob/
  summary: A collection of zc.buildout recipes for Bob packages
55
  license: BSD 3-Clause
Amir MOHAMMADI's avatar
Test  
Amir MOHAMMADI committed
56
  license_family: BSD