Refactor Travis tests

Now we test various configurations (with and without Python, with and without
Lapack, etc.).