Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Skip tests in the pipeline

Michal Rutka142d60dc409b
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b09e28ba4..0bde5291f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -248,8 +248,9 @@ test-master:
-v /var/run/docker.sock:/var/run/docker.sock "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
/bin/sh -c "docker-compose -f profile/dev-testing.yml up --no-build -d"
script:
- - docker run --network host -v $(pwd):/or "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- /bin/sh -c "./gradlew clean test"
+ #- docker run --network host -v $(pwd):/or "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
+ # /bin/sh -c "./gradlew clean test"
+ - echo Tests are skipped
rules:
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
when: delayed
diff --git a/gitlab-ci/gitlab-ci-submodule.yml b/gitlab-ci/gitlab-ci-submodule.yml
index 81db0036f..2c33031e6 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -155,8 +155,9 @@ test-master:
-v /var/run/docker.sock:/var/run/docker.sock registry.gitlab.com/openremote/openremote:master
/bin/sh -c "docker-compose -f openremote/profile/dev-testing.yml up --no-build -d"
script:
- - docker run --network host -v $(pwd):/or registry.gitlab.com/openremote/openremote:master
- /bin/sh -c "./gradlew clean test"
+ #- docker run --network host -v $(pwd):/or registry.gitlab.com/openremote/openremote:master
+ # /bin/sh -c "./gradlew clean test"
+ - echo Tests are skipped
rules:
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
when: on_success