Skip to content
Snippets Groups Projects
Commit ba917224 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[conda] Allow package to be tested outside of source checkout (see bob/bob.devtools#5)

parent 271f1eee
No related branches found
No related tags found
1 merge request!53Allow package to be tested outside of source checkout
Pipeline #27266 failed
{% set name = 'beat.editor' %} {% set name = 'beat.editor' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package: package:
name: {{ name }} name: {{ name }}
...@@ -13,11 +12,15 @@ build: ...@@ -13,11 +12,15 @@ build:
- cd {{ environ.get('RECIPE_DIR') }}/js - cd {{ environ.get('RECIPE_DIR') }}/js
- npm install - npm install
- npm run build - npm run build
- cd {{ project_dir }} - cd {{ environ.get('RECIPE_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 %}
- python setup.py install --single-version-externally-managed --record record.txt - python setup.py install --single-version-externally-managed --record record.txt
# installs the documentation source, readme to share/doc so it is available
# during test time
- install -d "${PREFIX}/share/doc/{{ name }}"
- cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"
requirements: requirements:
host: host:
...@@ -59,12 +62,10 @@ test: ...@@ -59,12 +62,10 @@ test:
- beat editor --help - beat editor --help
- beat editor serve --help - beat editor serve --help
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- if [ -n "${BEAT_BROWSER_TESTS}" ]; then cd {{ project_dir }}/conda/js; fi - if [ -n "${BEAT_BROWSER_TESTS}" ]; then cd {{ environ.get('RECIPE_DIR') }}/js; npm install; CHROMIUM_BIN=chromium-browser npm test; cd -; fi
- if [ -n "${BEAT_BROWSER_TESTS}" ]; then npm install; fi - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
- if [ -n "${BEAT_BROWSER_TESTS}" ]; then CHROMIUM_BIN=chromium-browser npm test; fi - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
- if [ -n "${BEAT_BROWSER_TESTS}" ]; then cd -; fi - sphinx-build -aEb doctest ${PREFIX}/share/doc/{{ name }}/doc sphinx
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx] - conda inspect objects -p $PREFIX {{ name }} # [osx]
...@@ -73,3 +74,4 @@ about: ...@@ -73,3 +74,4 @@ about:
license: AGPLv3 license: AGPLv3
summary: Local editor for BEAT objects summary: Local editor for BEAT objects
license_family: AGPL license_family: AGPL
license_file: ../LICENSE.AGPL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment