Error processing tar file(exit status 1): operation not permitted

IIRC this happens if you produce very much output very quickly and Travis logging system (which includes a network transfer) gets overwhelmed.

Don’t output the contents of the .tar file and you should be okay.