.travis.yml: make testing more robust against complex commit trees