Skip to content

armgit / core

Public Imported from GitHub
0

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

on_failure test artifacts.skip-build, skip-deploy

Michal Rutka9585f1487200
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5360da686..c16b9a42f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -119,9 +119,10 @@ test-master:
if: $CI_COMMIT_MESSAGE !~ /skip-test/
when: on_success
artifacts:
+ when: on_failure
paths:
- - /or/test/build/reports/tests/test/index.html
- expire_in: 2 months
+ - /or/test/build/reports/tests/test/
+ expire_in: 2 weeks
email failed tests:
stage: tests_fail
diff --git a/gitlab-ci/README.md b/gitlab-ci/README.md
index 7fa4a0fe8..537ab1382 100644
--- a/gitlab-ci/README.md
+++ b/gitlab-ci/README.md
@@ -1,4 +1,26 @@
-# Deploing OpenRemote stack
+# GitLab CI/CD pipeline
+
+There is .gitlab-ci.yml configuration file which is used to build/test and deploy stack in the GitLab enviroment.
+If one imports main repo the pipeline can be started.
+
+## Build docker images
+
+You can skip this stage by adding skip-build in the git commit message.
+
+## Test the stack
+
+You can skip this stage by adding skip-test in the git commit message.
+
+### Inspect failed test report output
+
+After running a failed pipleine the test report is stored as artifacts. On the right side of the failed pipleine there is a link
+where reports can be downloaded.
+
+## Deploy
+
+You can skip this stage by adding skip-deploy in the git commit message.
+
+# Deploing OpenRemote stack in the cloud
## Deployment on AWS