BUG: make sure to use platform int for GH6212
DOC: Add note to to_clipboard docstring
BLD: fix travis speedup
Merge pull request #6227 from y-p/PR_travis3

BLD: fix travis speedup