Change travis spec file

Put the after_script into the script part.