You don't need to run this script (and then to create it), as the purpose of this `.travis.yml` file is well... to prepare the VM to build your project. Moreover, your script is just not readable IMO (don't take it hardly, it is not a mean comment ^^)

I would go for the following:

```yaml
before_script:
  - ./install.sh --no-interaction
script:
  - service centralreport status --no-interaction
after_script:
  - ./uninstall.sh --no-interaction
```

Thus, we will add webservices calls/tests or any test suite we would like to run in the `script` section.

Finally, I find it more readable/maintainable and easy to do what the overall build will do in one file rather than checking the script-ception.