DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

Collapse
 
theodesp profile image
Theofanis Despoudis • Edited on

Step-1: Sign-up travis-ci.org/
Step-2: Enable it on your project
Step-3: Follow the documentation for your project language -> for example
docs.travis-ci.com/user/languages/...
Step-4: Create the simplest file and test that it works:
Minimal example:

language: java

Step-5: Add extra steps if necessary

Collapse
 
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.

Collapse
 
bertilmuth profile image
Bertil Muth Author

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

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›