Commit 5f5c0ed6 authored by André Anjos's avatar André Anjos 💬

Fix test execution

parent 739ccb3c
Pipeline #24322 passed with stages
in 29 minutes and 19 seconds
...@@ -17,6 +17,7 @@ build: ...@@ -17,6 +17,7 @@ build:
- 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
- cp -r doc $SRC_DIR
requirements: requirements:
host: host:
...@@ -40,7 +41,7 @@ requirements: ...@@ -40,7 +41,7 @@ requirements:
test: test:
source_files: source_files:
- {{ environ.get('SRC_DIR') }}/doc - doc
requires: requires:
- bob-devel {{ bob_devel }}.* - bob-devel {{ bob_devel }}.*
...@@ -55,10 +56,8 @@ test: ...@@ -55,10 +56,8 @@ test:
- {{ name }} - {{ name }}
commands: commands:
- worker --help
- 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]
- run_test.sh
about: about:
home: https://www.idiap.ch/software/beat/ home: https://www.idiap.ch/software/beat/
......
#/usr/bin/env bash #/usr/bin/env bash
# Checks whether to use "date" or "gdate"
gnudate() {
if hash gdate 2>/dev/null; then
echo gdate
else
echo date
fi
}
DATE=`gnudate`
# datetime prefix for logging
log_datetime() {
echo "($(${DATE} +%T.%3N))"
}
# Functions for coloring echo commands
log_info() {
echo -e "$(log_datetime) \033[1;34m${@}\033[0m"
}
log_error() {
echo -e "$(log_datetime) \033[1;31mError: ${@}\033[0m" >&2
}
# Function for running command and echoing results
run_cmd() {
log_info "$ ${@}"
${@}
local status=$?
if [ ${status} != 0 ]; then
log_error "Command Failed \"${@}\""
exit ${status}
fi
}
if [ -z "${BEAT_DOCKER_TESTS}" ]; then if [ -z "${BEAT_DOCKER_TESTS}" ]; then
nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} --exclude=".*test_docker.*" run_cmd nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} --exclude=".*test_docker.*"
sphinx-build -aEW doc sphinx run_cmd worker --help
sphinx-build -aEb doctest doc sphinx run_cmd sphinx-build -aEW doc sphinx
run_cmd sphinx-build -aEb doctest doc sphinx
else else
nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} run_cmd nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME}
fi fi
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