thegreenwebfoundation / greencheck-api

The green web foundation API
https://www.thegreenwebfoundation.org/
Apache License 2.0
9 stars 3 forks source link

Build our tests with Travis and add postgresql to our testing matrix #52

Closed arendjantetteroo closed 4 years ago

arendjantetteroo commented 4 years ago

This PR adds the travis build tool to the mix and removes the google cloud build stuff.

This adds phpstan checks so we avoid stupid mistakes that can be caught by a static code analyzer.

We also add postgres to the testing matrix mix and fix a couple things to make this work against a postgres database as well. Most important change to make that happen is testing active vs a stringified true/false like 'true' and 'false'. Apperently otherwise postgres doesn't correctly convert those values into something the database can query for.