See in your travis.yml file
before_script: - set | grep TRAVIS
Documentation
This is mostly caused by a bad yaml file.
Try an online converter to json such as https://onlineyamltools.com/convert-yaml-to-json