• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Add Travis CI To Your GitHub Project

By Abhishek Ghosh January 28, 2015 1:04 am Updated on January 28, 2015

How To Add Travis CI To Your GitHub Project

Advertisement

Here is How To Add Travis CI To Your GitHub Project – That Build Passing Status Sticker in documentation. Travis is a Continuous Integration Service. Travis CI is non-Free hosted software service. There are lot of Continuous Integration Free Software, which you can install on your server do the same thing. We are writing this guide on How To Add Travis CI To Your GitHub Project, as most uses this service with GitHub. Travis CI tests a build depending on the .travis.yml file, it will test and send email notification upon failure.

 

How To Add Travis CI To Your GitHub Project : Known the Basics of Revision Control Softwares

 

We have talked about the Common Terminologies in Revision Control, basics about Revision Control, SVN or Apache Subversion and obviously about Git. Git is important for PaaS.

How To Add Travis CI To Your GitHub Project

 

How To Add Travis CI To Your GitHub Project

 

We do not need continuous integration system for all the projects. When there are regular many Pull and Push by many contributors, it is helpful to understand the status. Build Failed not necessary means, the thing will not work. Build Unknown means that .travis.yml file is not configured. Technically it is better to have a Build Unknown sticker than Build Failed sticker.

Advertisement

---

We are using OS X Homebrew-iTerm2-ZSH setup. We need to install a Ruby Gems first via Terminal (not iTerm2) :

Vim
1
sudo gem install travis-lint

This will help you to debug the .travis.yml file via this command :

Vim
1
travis-lint .travis.yml

Next, register for the service :

https://travis-ci.org/

You will authenticate via GitHub WebHook. It is quite easy to understand web GUI, you are an advanced user, you can read their docs to enable the service by simple clicking. Suppose, you want to create a new project or add the Badge to an existing project. Take this as example :

Vim
1
git clone git@github.com:AbhishekGhosh/joomla.git && cd joomla

Now, we at least need these files :

  1. .gitignore
  2. README.md
  3. .travis.yml
  4. Some example script for which the repo is for

You can look at that project’s .gitinore file :

Vim
1
https://github.com/AbhishekGhosh/joomla/blob/master/.gitignore

It was generated automatically, while creating the project. This is important. Here is docs on .gitinore :

Vim
1
http://git-scm.com/docs/gitignore

Everyone knows, after updating a git locally, you need to push :

Vim
1
git push -u origin master

In between, you need to add the thing which will give you that Sticker – Build Passing. It is very easy, suppose your GitHub repo’s corresponding Travis CI url is :

Vim
1
https://travis-ci.org/AbhishekGhosh/HP-Cloud-ASCII-Logo

Extra fun! Point towards – https://gitter.im, you’ll get a chat service. It is very easy to setup.

Tagged With Travis CI , how to add build unknown to github , git travis howto , add travis to repository , add travis to gitlabs project , add travis to github project , add travis icon to github , add travis github , add travis ci to github , add travis ci to git repo
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Add Travis CI To Your GitHub Project

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • How to Use Git Repo In Shared Hosting Account

    It might wonder many, but actually one can push a Git Repo in shared hosting environment, that is great to do many advanced works. Here is how.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy