Skip to content

CI: dehardcode project path in supervisord configuration

The hardcoding caused a problem running API tests when I copied this project to a different namespace. The project path depends on the namespace in GitLab, therefore it'll change if the project is moved/copied elsewhere.

The change dehardcodes the project and path and uses a predefined GitLab environment variable CI_PROJECT_DIR, which contains the absolute path to the project build directory. For Docker runners, for iopsys/wifimngr, this path is /builds/iopsys/wifimngr, as it was previously.

Since this supervisord configuration is in the gitlab-ci directory, I'm assuming that this file is only used in GitLab CI, where this environment variable is available by default.

Merge request reports

Loading