travis-ci: test with optional dependencies