DEV Community

Bertil Muth
Bertil Muth

Posted on

How to get started with Travis CI fast

Hi. Currently, I am the only contributor to my Github project. I don’t use Travis so far, but I heard there’s a Github integration and want to know about it.

What is the fastest, free way to get started with it? I am not talking about a fancy build process, just compiling, generating docs, running tests etc.

Top comments (3)

theodesp profile image
Theofanis Despoudis • Edited

Step-1: Sign-up
Step-2: Enable it on your project
Step-3: Follow the documentation for your project language -> for example
Step-4: Create the simplest file and test that it works:
Minimal example:

language: java

Step-5: Add extra steps if necessary

cjbrooks12 profile image
Casey Brooks

A good thing to note here is that Travis CI is really great for running custom build scripts, but it is not a platform like Jenkins, where it is able to do everything itself with plugins. You're free to put all your build logic in scripts, Gradle/NPM/whatever-build-tool commands, and just tell Travis what you need it to do. So Travis itself is quite simple to get up and running, because it is just the commands you're already doing to build and deploy your project, just in script form.

bertilmuth profile image
Bertil Muth

Sounds good, I’m using Gradle and I’m pretty happy with it.