Commit 0b66c507 authored by Samuel GAIST's avatar Samuel GAIST

[conda] Update testing to use pytest in place of nose

parent df258b9c
......@@ -13,11 +13,7 @@ build:
{% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip
{% endif %}
- 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 requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
- "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
requirements:
host:
......@@ -40,7 +36,6 @@ test:
- bob-devel {{ bob_devel }}.*
- beat-devel {{ beat_devel }}.*
- bob.extension
- nose
- pytest
- pytest-qt
- pytest-cov
......@@ -53,13 +48,10 @@ test:
commands:
- beat editor --help
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- export CHROMIUM_BIN=chromium-browser
- if [ -n "${BEAT_BROWSER_TESTS}" ]; then python linkeditor.py; cd js; npm install; npm test; cd -; fi
- unset CHROMIUM_BIN
- sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
- if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
- sphinx-build -aEb doctest ${PREFIX}/share/doc/{{ name }}/doc sphinx
- beat editor start --help
- pytest --cov={{ name }} -v {{ project_dir }}/
- 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 objects -p $PREFIX {{ name }} # [osx]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment