matomo-org / plugin-AnonymousPiwikUsageMeasurement

Help making Matomo better by sending anonymized usage data to the creators the project, and/or to your own Matomo instance and/or to any other Matomo instance
https://plugins.matomo.org/AnonymousPiwikUsageMeasurement
GNU General Public License v3.0
4 stars 12 forks source link

Setup Travis CI build for AnonymousPiwikUsageMeasurement #10

Closed mattab closed 9 years ago

mattab commented 9 years ago

I think we should setup the travis CI build for this repo. It will help us detect whether tests are failing, before we update submodules on piwik/piwik

eg. this submodule update broke the piwik platform build: https://travis-ci.org/piwik/piwik/jobs/85784574

....................PHP Fatal error:  Cannot use Piwik\Db\Settings as Settings because the name is already in use in /home/travis/build/piwik/piwik/plugins/AnonymousPiwikUsageMeasurement/Updates/0.1.1.php on line 13

Fatal error: Cannot use Piwik\Db\Settings as Settings because the name is already in use in /home/travis/build/piwik/piwik/plugins/AnonymousPiwikUsageMeasurement/Updates/0.1.1.php on line 13
tsteur commented 9 years ago

We can add it but don't think it's important. Personally I never have a look there anyway since it takes too long to get a result. Even when it takes only 2 minutes to run tests it is too long as one kinda has to wait for it unless one switches between tasks all the time etc.

tsteur commented 9 years ago

I'm reopening it as I don't get the system tests to work. It looks like there are no artifacts uploaded for plugins so I have not really a clue why it doesn't work. They run locally without any issues.

@diosmosis do you mind having a quick look at https://travis-ci.org/piwik/plugin-AnonymousPiwikUsageMeasurement/jobs/86173591 ? Maybe you have an idea?

diosmosis commented 9 years ago

I can reproduce locally either, looks like some travis environment issue. Would have to debug travis to figure out exactly what's happening, though it looks like there's something wrong happening during fixture setup.

tsteur commented 9 years ago

I'm investigating...

tsteur commented 9 years ago

So far I found out the fixture is actually setup correctly. It records all API calls, and it tracks all API calls ({"status":"success","tracked":15,"invalid":0}). It looks like the report invalidation is maybe not working... i continue to debug

tsteur commented 9 years ago

It works. Updating the minimum required version from b17 to rc1 fixed it. Guess there was a bug in Piwik re reports invalidation