Extract writeAttribute (DRY).
Add configuration file for Travis CI.