From 51fe06837d4e21c7204f8868bced6a5f02387bbc Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Fri, 11 Jan 2019 10:19:16 +0100
Subject: [PATCH] [conda] Update testing to use pytest in place of nose

---
 conda/meta.yaml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/conda/meta.yaml b/conda/meta.yaml
index f412c7f9..2a131005 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -14,7 +14,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
+    - "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
 
 requirements:
   host:
@@ -37,7 +37,6 @@ test:
     - bob-devel {{ bob_devel }}.*
     - beat-devel {{ beat_devel }}.*
     - bob.extension
-    - nose
     - pytest
     - pytest-qt
     - pytest-cov
@@ -50,11 +49,8 @@ test:
 
   commands:
     - beat editor --help
-    - 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 npm install; fi
-    - if [ -n "${BEAT_BROWSER_TESTS}" ]; then CHROMIUM_BIN=chromium-browser npm test; fi
-    - if [ -n "${BEAT_BROWSER_TESTS}" ]; then cd -; fi
+    - 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]
-- 
GitLab