Skip to content

Commit

Permalink
ci: Added job for running full integration pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Alf-Rune Siqveland <[email protected]>
  • Loading branch information
alfrunes committed Oct 2, 2024
1 parent 2f89cde commit f7d970d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci-full-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test:integration:
rules:
- if: $RUN_TESTS_FULL_INTEGRATION == "true"
services:
- docker:${DOCKER_VERSION}-dind
image: docker:${DOCKER_VERSION}-cli
stage: test
before_script:
- apk install $(cat ./tests/requirements-system/apk-requirements.txt)
- pip3 install -r ./tests/requirements-python/python-requirements.txt
script:
- ./tests/run.sh
29 changes: 24 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@

include:
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-github-status-updates.yml'
- project: "Northern.tech/Mender/mendertesting"
file: ".gitlab-ci-github-status-updates.yml"
- local: .gitlab-ci-staging-tests.yml
rules:
- if: $RUN_TESTS_STAGING == "true"
- local: .gitlab-ci-default-pipeline.yml
rules:
- if: $RUN_TESTS_STAGING != "true"
- if: $RUN_TESTS_STAGING == "true"
when: never
- if: $RUN_FULL_INTEGRATION == "true"
when: never
- local: .gitlab-ci-full-integration.yml
rules:
- if: $RUN_TESTS_FULL_INTEGRATION == "true"

stages:
- test
- build
- publish

variables:
RUN_TESTS_STAGING: "false"
RUN_TESTS_STAGING:
description: "Run staging integration tests"
value: "false"
RUN_TESTS_FULL_INTEGRATION:
description: "Run full integration tests"
value: "false"

DOCKER_VERSION:
description: "Docker version to use in jobs"
value: "27"

.publish:versions:
stage: publish
Expand Down Expand Up @@ -51,9 +65,14 @@ variables:

publish:versions:tags:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_TAG
extends: .publish:versions

publish:versions:manual:
when: manual
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
extends: .publish:versions

0 comments on commit f7d970d

Please sign in to comment.