Git Product home page Git Product logo

setup-travis-ci-example's Introduction

How to setup Travis CI

Build Status

1. Signed up an account on https://travis-ci.org

2. Go to account page

Mine is: https://travis-ci.org/profile/JuanitoFatas

screen shot 2016-10-08 at 2 36 59 am

3. Sync account

screen shot 2016-10-08 at 2 37 49 am

4. Enable the repository

Click

screen shot 2016-10-08 at 2 39 46 am

5. Go to the repository settings page

Click the gear icon

screen shot 2016-10-08 at 2 39 51 am

Repository Settings Page

screen shot 2016-10-08 at 2 42 40 am

6. Copy the badge to README

Click the badge

screen shot 2016-10-08 at 2 44 33 am

Copy the markdown

screen shot 2016-10-08 at 2 44 59 am

Paste to README.md. Normally we put right below the title:

diff --git a/README.md b/README.md
index 8e26ec3..aae8002 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # How to setup Travis CI

+[![Build Status](https://travis-ci.org/JuanitoFatas/setup-travis-ci-example.svg?branch=setup-travis)](https://travis-ci.org/JuanitoFatas/setup-travis-ci-example)
+
 ## 1. Signed up an account on https://travis-ci.org

 ## 2. Go to account page

7. Create a .travis.yml file

language: ruby
rvm:
  - 2.3.1
script:
  - bundle exec rspec

More info: https://docs.travis-ci.com/user/languages/ruby.

8. Push and kick off your first build ๐Ÿ’ฅ

You can find your build on Repo Settings page on https://travis-ci.org/JuanitoFatas/setup-travis-ci-example.

screen shot 2016-10-08 at 3 02 09 am

--

Now when you open a Pull Request, Travis CI will run your tests:

screen shot 2016-10-08 at 2 57 55 am

โค๏ธ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.