Update Travis configuration and support headless testing