Commit d2f72c74 authored by André Anjos's avatar André Anjos 💬

Tries yet another strategy

parent c5e93d1b
Pipeline #24326 canceled with stages
in 4 minutes and 57 seconds
...@@ -57,8 +57,8 @@ test: ...@@ -57,8 +57,8 @@ test:
commands: commands:
- worker --help - worker --help
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - if [ -z "${BEAT_DOCKER_TESTS}" ]; then sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx; fi
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - if [ -z "${BEAT_DOCKER_TESTS}" ]; then sphinx-build -aEb doctest {{ project_dir }}/doc sphinx; fi
- 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]
......
#/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
run_cmd nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME} --exclude=".*test_docker.*"
else
run_cmd nosetests --with-coverage --cover-package=${PKG_NAME} -sv ${PKG_NAME}
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