-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No UI tests for plugin builds when generating travis.yml #19
Comments
The file generation doesn't change the environment variables or matrix (in case users want to define different builds/vars) if a file already exists. You have to add them manually, or you can move the file, generate and then copy over the secure variables. Or you can set environment variables in the repo's settings, delete the file & regenerate. |
So one actually has to set I didn't understand the meaning of that option even when reading the help tests. Can we maybe rename it to something like |
That's just for the web hook (since an empty plugin will have no UI tests), it won't have any effect in this case. In this case you have to manually edit the .travis.yml file, because the generation mechanism won't modify the matrix/global envs of existing .travis.yml files. |
If we always applied When generating a UI test, we should check for existence of |
The option was meant for a different use case. If you want to always generate a job for UI tests, you can remove the check for UI tests in the code.
You're welcome to add the change. I gave up originally when trying to generate human readable .travis.yml files that preserved comments & original formatting. |
I did not know there is already a check whether UI tests exist in a plugin. So what we basically need to do is to add the following line to the matrix when generating a UI test (if the line does not exist yet):
For this I will create an issue in |
Now I also understand why the option is named |
I generated a travis-yml for CustomDimensions and it does not run UI tests: https://github.com/piwik/plugin-CustomDimensions/blob/master/.travis.yml
see https://travis-ci.org/piwik/plugin-CustomDimensions
Am I doing something wrong or is it a bug? I tried to generate it again but it didn't show it. I saw there is a parameter
--force-ui-test
but I have no clue what it does.The text was updated successfully, but these errors were encountered: