JuanitoFatas / setup-travis-ci-example

HOWTO setup Travis CI for a Ruby project

Home Page:https://github.com/JuanitoFatas/setup-travis-ci-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

❤️

About

HOWTO setup Travis CI for a Ruby project

https://github.com/JuanitoFatas/setup-travis-ci-example


Languages

Language:Ruby 100.0%