BLD: fix travis speedup
Merge pull request #6227 from y-p/PR_travis3

BLD: fix travis speedup