FR - support defining the project dir when using `exec`
Some of my repos make use of the repo name during CI testing. This works in the full gitlab-ci, as it clones the repo (foo) into e.g. /builds/foo
. However when I try with gitlab-ci-multi-runner exec docker test
locally, it clones into /builds/project-1
. Which then fails, because the tests are looking for ../foo/.
An example of where I use this is with Ansible roles. e.g. in my 'foo' role
test:
image: centos:6.8
before_script:
- yum install -y epel-release
- yum install -y ansible
- printf '[defaults]\nroles_path=../' > ansible.cfg
script:
- ansible-playbook tests/test.yml -i test/inventory --syntax-check
the above example is rather app specific, but being consistent with local testing vs gitlab-ci testing is desirable too
So would it be possible to either, get the repo name and use it instead of project-1, or allow a parameter to be provided such as --projectdir
.
Thanks!