Commit 60ad6ec1 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci: test the container image instead of the Python command

parent 7c30600e
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -27,8 +27,10 @@ py-release:
    - when: never

dry-run-test:
  extends: .python-base
  stage: test
  image:
    name: "$DOCKER_SNAPSHOT_IMAGE"
    entrypoint: [""]
  stage: package-test
  variables:
    SRC_GITLAB_API: https://gitlab.com/api/v4
    SRC_SYNC_PATH: to-be-continuous
@@ -38,8 +40,7 @@ dry-run-test:
    EXCLUDE: samples
    # DEST_TOKEN is declared as a project secret variable
  script:
    - install_requirements
    - poetry run gitlab-cp --dry-run
    - gitlab-cp --dry-run
  rules:
    # run only on original project on gitlab.com
    - if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "to-be-continuous/tools/gitlab-cp"'