Skip to content
Snippets Groups Projects
Select Git revision
  • 08b25bd47af541207c9a33d336f25ddd2bac21d2
  • master default protected
  • intros
  • live_sources
  • bootstrap4
  • modules
6 results

timetable.py

Blame
  • Forked from Video AG Infrastruktur / website
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    docker_start.sh 1.04 KiB
    #!/bin/bash
    
    # This file is executed when the docker container starts!
    
    mkdir -p ./log/
    
    if [ $# = 1 ] && [ $1 = "-test" ]; then
      echo "Running tests"
    
      export COVERAGE_REPORT_DIR=${COVERAGE_REPORT_DIR:=../coverage}
      mkdir -p $COVERAGE_REPORT_DIR
    
      # We always execute from src (For consistency with uWSGI)
      cd src
      uname -a
      export VIDEOAG_TEST_CONFIG_OVERRIDE="../config/test_config_override.py"
      python -V
      python -m coverage run --data-file "../coverage/.data" run_tests.py ||
        { echo "Test failed!"; exit 1; }
      python -m coverage report --data-file "../coverage/.data" --include "./*" ||
        { echo "Coverage report stdout failed"; exit 1; }
      python -m coverage report --data-file "../coverage/.data" -m --include "./*" > $COVERAGE_REPORT_DIR/report.txt ||
        { echo "Coverage report report.txt failed"; exit 1; }
      python -m coverage html -d "$COVERAGE_REPORT_DIR/html/" --data-file "../coverage/.data" --include "./*" ||
        { echo "Coverage report html failed"; exit 1; }
    else
      echo "Running uWSGI"
      uwsgi --ini ${VIDEOAG_UWSGI_CONFIG}
    fi