Add travis configuration.

Add travis configuration and disable tests that depend on optional requirements.