#!/usr/bin/env bash
set -e

if [ -z ${TASK} ]; then
  echo "No task provided"
  exit 2
fi

if [ ${TASK} == 'checks' ]; then
  # compile .py files, useful as compatibility syntax check
  make compile
  make pylint flake8 docs
elif [ ${TASK} == 'unit' ]; then
  # compile .py files, useful as compatibility syntax check
  make compile
  make .unit-tests-coverage-html
elif [ ${TASK} == 'integration' ]; then
  sudo make .itests-coverage-html
elif [ ${TASK} == 'mistral' ]; then
  make .mistral-itests-coverage-html
else
  echo "Invalid task: ${TASK}"
  exit 2
fi

#!/usr/bin/env bash
set -e

if [ -z ${TASK} ]; then
  echo "No task provided"
  exit 2
fi

if [ ${TASK} == 'checks' ]; then
  # compile .py files, useful as compatibility syntax check
  make compile
  make pylint flake8 docs
elif [ ${TASK} == 'unit' ]; then
  # compile .py files, useful as compatibility syntax check
  make compile
  make .unit-tests-coverage-html
elif [ ${TASK} == 'integration' ]; then
  make .itests-coverage-html
elif [ ${TASK} == 'mistral' ]; then
  make .mistral-itests-coverage-html
else
  echo "Invalid task: ${TASK}"
  exit 2
fi

Revert "Try running itests as root, maybe this will cause sensor container tests not to"
Revert "Try running itests as root, maybe this will cause sensor container tests not to"

This reverts commit cca1af7a2c4f704d7cbdbc44970a41c7704369f4.
