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
When generating a travis.yml file, add all jobs by default and do not fail if there are no tests #9274
Comments
This is maybe even more important for Piwik PRO where a |
+1 to always run the UI test CI job so that there is no issue in the future when one will add the UI test. |
FYI, this is not an issue for pro plugins w/ autogenerated .travis.yml files. UI test builds are forced for those plugins. Can be an issue, if the build is removed manually. |
… travis job(s) when .travis.yml file is present, the test target env var can be deduced and the job is missing from the matrix. Notes: - Uses regexes to preserve original formatting. - Additions appear to be well formed as long as initial .travis.yml is well formed.
Changing title from When generating a UI test, add a UI test job to travis.yml"" to "When generating a travis.yml file, add all jobs by default and do not fail if there are no tests". I think it's better to always run all jobs this would make it easier so we do not have to add any jobs later etc and might be even more encouraging to write ui tests etc. Maybe we could even create a default UI test with every plugin. In |
Closing as we're now using Github actions |
See discussion in matomo-org/travis-scripts#19
When generating a
travis-yml
file via./console generate-travis-yml
there is by default no job for a UI test generated (unless the plugin already contains some UI tests).When generating a UI test someone can execute them locally but they won't be executed on travis and it is easy to forget to add this check manually and to never notice the tests fail (happened to me with CustomDimensions plugin).
When generating a new UI test we should check whether a
travis.yml
exists, and if so add a lineTEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_PIWIK_BRANCH=$PIWIK_TEST_TARGET
toenv/matrix
in case the line is not present yet.The text was updated successfully, but these errors were encountered: