Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify travis.yml script steps by bailing early if nothing to do
As the first step in before_install we can do a single big conditional statement to see if we have anything useful to do for this build matrix job. If not then we can do an `exit 0` in the `else` which happily terminates the job. This saves it doing any further unneeded install steps or sauce_connect, saving a bit of time for build matrix jobs that have nothing to do. Tests on later steps do not need the full complex logic any more. Once we get through the first step, we know that we have either a "syntax", "selenium" or "TEST_DAV" build, and the selenium build satisfies all the other complicated conditions already. So we can just test for those 3 things to decide which steps to execute.
- Loading branch information