Move cmake run to the script part of travis.yml.