From 0be25976eafea609b3466c7a94227b6a0ac33120 Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Mon, 15 Oct 2018 13:24:46 +0200 Subject: [PATCH] Try a test fix with new test strategy --- conda/meta.yaml | 8 +------- conda/run_test.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 conda/run_test.sh diff --git a/conda/meta.yaml b/conda/meta.yaml index 0b737505..516167b6 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -53,15 +53,9 @@ test: commands: - worker --help - {% if environ.get('BEAT_DOCKER_TESTS', False) %} - - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - {% else %} - - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} --exclude=".*test_docker.*" - - 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] - {% endif %} + - run_test.sh about: home: https://www.idiap.ch/software/beat/ diff --git a/conda/run_test.sh b/conda/run_test.sh new file mode 100644 index 00000000..2b4c04c8 --- /dev/null +++ b/conda/run_test.sh @@ -0,0 +1,9 @@ +#/usr/bin/env bash + +if [ -z "${BEAT_DOCKER_TESTS}" ]; then + nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} --exclude=".*test_docker.*" + sphinx-build -aEW ${SRC_DIR}/doc ${SRC_DIR}/sphinx + sphinx-build -aEb doctest ${SRC_DIR}/doc sphinx +else + nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} +fi -- 2.21.0