.travis.yml: modularize test steps.