From 94e9cc542b3e8154706809e5dde54ff9e7235d31 Mon Sep 17 00:00:00 2001 From: Thomas Coldrick Date: Fri, 20 Sep 2019 11:46:23 +0100 Subject: Add external plugin tests to CI Runs external plugin tests on fedora 29 with allowed failure. At present this only tests against a branch, as there is tooling missing in bst-plugins-experimental, and there is no tag which would be compatible. In future there should be two targets, one testing plugins master and one testing the last tag. --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef31ad326..51e0f8c57 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,7 @@ variables: INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" PYTEST_ARGS: "--color=yes --integration -n 2" TEST_COMMAND: "tox -- ${PYTEST_ARGS}" - EXTERNAL_TESTS_COMMAND: "tox -e py{35,36,37}-external -- ${PYTEST_ARGS}" + EXTERNAL_TESTS_COMMAND: "tox -e py37-plugins-master -- ${PYTEST_ARGS}" COVERAGE_PREFIX: "${CI_JOB_NAME}." @@ -44,7 +44,6 @@ variables: # Run the tests as a simple user to test for permission issues - su buildstream -c "${TEST_COMMAND}" - - su buildstream -c "${EXTERNAL_TESTS_COMMAND}" after_script: except: @@ -195,6 +194,18 @@ tests-spawn-multiprocessing-start-method: variables: BST_FORCE_START_METHOD: "spawn" +tests-external-plugins: + image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:30-master-83237142 + allow_failure: true + script: + - mkdir -p "${INTEGRATION_CACHE}" + - useradd -Um buildstream + - chown -R buildstream:buildstream . + + # Run the tests as a simple user to test for permission issues + - su buildstream -c "${EXTERNAL_TESTS_COMMAND}" + + # Run type checkers mypy: stage: test -- cgit v1.2.1