Skip to content
Snippets Groups Projects
Commit 9136cb48 authored by Simon Künzel's avatar Simon Künzel
Browse files

fixup! Add package caching for CI

parent e6a599cd
No related branches found
No related tags found
No related merge requests found
Pipeline #7340 canceled
Pipeline: backend

#7341

    ......@@ -9,15 +9,16 @@ if [ $# = 1 ] && [ $1 = "-test" ]; then
    # We always execute from src (For consistency with uWSGI)
    cd src
    uname -a
    export COVERAGE_REPORT_DIR=${COVERAGE_REPORT_DIR:=../coverage}
    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.txt ||
    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/html/" --data-file "../coverage/.data" --include "./*" ||
    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"
    ......
    ......@@ -159,7 +159,7 @@ RUN pip install {pip_requirement_list_arg}
    return self.context.build_dir.joinpath(".dockerfiles").joinpath(self.target_image_name)
    def image_full_name(self):
    return f"{self.context.env_type()}/{self.target_image_name}"
    return f"{self.context.env_type()}_{self.target_image_name}"
    def ci_build_job_name(self):
    return f"build-{self.target_image_name}"
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment