Move after_script section to script in Travis.