Once you're signed in, and we've initially synchronized your repositories from GitHub, go to your {{#link-to "profile"}}profile{{/link-to}} page for open source or for your private projects.
You'll see all the organizations you're a member of and all the repositories you have access to. The ones you have administrative access to are the ones you can enable the service hook for.
Flip the switch to on for all repositories you'd like to enable.
In order for Travis CI to build your project, you need to tell the systems a little bit about it. You'll need to add a file named .travis.yml to the root of your repository.
If .travis.yml is not in the repository, is misspelled or is not valid YAML, Travis CI will ignore it.
Note: The language
value is case-sensitive. If you set language: C
, for example, your project will be considered a Ruby project.
Here you can find some of our basic language examples.
Once the GitHub hook is set up, push your commit that adds .travis.yml to your repository. That should add a build into one of the queues on Travis CI and your build will start as soon as one worker for your language is available.
To start a build, perform one of the following:
Note: You cannot trigger your first build using Test Hook button. It has to be triggered by a push to your repository.
Want to read more? Head to our docs.