Move yard check to script
Move yard check to script

[#50752269]

Placing the yard check in the after_script: section did not cause the
build to fail.

bcook-r7/metasploit_data_models,rapid7/metasploit-model,farias-r7/metasploit_data_models,rapid7/metasploit-cache,bcook-r7/metasploit_data_models,rapid7/metasploit-cache,rapid7/metasploit-model,rapid7/metasploit_data_models,rapid7/metasploit-cache,bcook-r7/metasploit_data_models,rapid7/metasploit-model,rapid7/metasploit_data_models,rapid7/metasploit_data_models,rapid7/metasploit-cache,farias-r7/metasploit_data_models,farias-r7/metasploit_data_models