matomo-org / piwik-python-api

Piwik API for Python
BSD 3-Clause "New" or "Revised" License
99 stars 43 forks source link

Use Docker to run tests in Travis #21

Open PabloCastellano opened 6 years ago

PabloCastellano commented 6 years ago

I've implemented a way of using travis and docker to run tests.

It can be simplified more but I wanted to show you this approach to know if it's worth spending more time working on it.

It spins up two Docker containers: one for mysql 8 and another one for matomo 3.5. In the mysql container a dump of the matomo database is copied. In the matomo container a basic configuration file is copied.

The tests are then executed against localhost:8080.

WDYT?

PabloCastellano commented 6 years ago

Is there any active maintainer? @brendoncrawford ?

Tests do not pass but at least now we know why :) https://travis-ci.org/matomo-org/piwik-python-api/jobs/407984974

mattab commented 5 years ago

Hi @PabloCastellano Unfortunately there currently is not an active maintainer. Would you maybe be interested? See also https://github.com/matomo-org/piwik-python-api/issues/19 And a new PR with ongoing improvements has been opened at https://github.com/matomo-org/piwik-python-api/pull/24 Thanks,