summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-07-17 04:19:01 +0000
committerEvan Read <eread@gitlab.com>2019-07-17 04:19:01 +0000
commit6bfbfb06cfcea9656547fd70e8eb230799feb5ea (patch)
tree3e3c08514edf40b9598e6a6657c28b748938cbb0
parentaafa6a116f2e0cf48e231dd5dac1feb487805090 (diff)
parent55ab098eb1a778e794de8afb2773645405a11a7b (diff)
downloadgitlab-ce-6bfbfb06cfcea9656547fd70e8eb230799feb5ea.tar.gz
Merge branch 'tip-for-ansi-colors' into 'master'
Add tip about stripping ANSI color codes Closes gitlab-runner#3559 See merge request gitlab-org/gitlab-ce!30701
-rw-r--r--doc/user/project/pipelines/settings.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/user/project/pipelines/settings.md b/doc/user/project/pipelines/settings.md
index e60da6a3e59..df82daa3da3 100644
--- a/doc/user/project/pipelines/settings.md
+++ b/doc/user/project/pipelines/settings.md
@@ -89,6 +89,22 @@ in the jobs table.
A few examples of known coverage tools for a variety of languages can be found
in the pipelines settings page.
+### Removing color codes
+
+Some test coverage tools output with ANSI color codes that won't be
+parsed correctly by the regular expression and will cause coverage
+parsing to fail.
+
+If your coverage tool doesn't provide an option to disable color
+codes in the output, you can pipe the output of the coverage tool through a
+small one line script that will strip the color codes off.
+
+For example:
+
+```bash
+lein cloverage | perl -pe 's/\e\[?.*?[\@-~]//g'
+```
+
## Visibility of pipelines
Access to pipelines and job details (including output of logs and artifacts)