Copy Travis script from scikit-learn