First, add SURGE_USER and SURGE_TOKEN environment variables to the repo's settings page in Travis:
Then modify the repo's .travis.yml file to perform whatever build steps are required to generate the static website in the before_deploy step.
Below, I'm installing Jekyll and building the site in the docs/ dir where my site's source files live.
language: node_js