diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35b2245f67c638361c0feb45bfbbf2b1c594466c..f498a22fc96bc67041021a2679308ded4ffc7859 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,6 +115,30 @@ test: when: on_failure expire_in: 1 week +test_debian: + tags: [docker] + stage: test + image: $CI_REGISTRY_INDISCALE/caosdb/src/caosdb-deploy/caosdb-run-base:latest + script: + # get debian image + - 'curl --location --output debian_artifacts.zip --header "JOB-TOKEN: $CI_DEBIAN_JOB_TOKEN" "https://gitlab.indiscale.com/api/v4/projects/14/jobs/$DEBIAN_JOB_ID/artifacts"' + - unzip debian_artifacts.zip + + - dpkg -i /path/to/file + - apt-get install -f + - cd .docker + # the pyinttest docker writes the return value of the tests into the + # file result + - /bin/sh ./run.sh + - cd .. + dependencies: [cert] + artifacts: + paths: + - caosdb_log.txt + - mariadb_log.txt + when: on_failure + expire_in: 1 week + build-testenv: tags: [cached-dind] image: docker:19.03