Add Circle CI YAML configuration file

This will fix some errors in the tests, which rely on the environment to be configured correctly.

It might also be good to isolate the environment-dependent parts and test them separately as a means for allowing developers to check their setup and configuration.