I have the following gitab-ci.yml file
:
stages:
- tests
.test: &test_job
image:
name: test.com/test:latest
entrypoint: [""]
script:
- py.test /test -v $EXTRA_OPTIONS
testing:
variables:
EXTRA_OPTIONS: -m "not slow"
<<: *test_job
stage: tests
I would like to pass option to run pytest like:
py.test /tests -v -m "not slow"
to avoid running slow tests, but gitlab is trying to escape quotes.
I've got something like:
py.test /tests -v -m '"not\' 'slow"'
is it possible to create a variable that would be inlined without escaping?
All I found it's this link but it does not help.