travis: exporting code to external script

this script should be available for use to other C.I