1. Signed up an account on https://travis-ci.org
Mine is: https://travis-ci.org/profile/JuanitoFatas
Click
Click the gear icon
Repository Settings Page
Click the badge
Copy the markdown
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
language: ruby
rvm:
- 2.3.1
script:
- bundle exec rspec
More info: https://docs.travis-ci.com/user/languages/ruby.
You can find your build on Repo Settings page on https://travis-ci.org/JuanitoFatas/setup-travis-ci-example.
--
Now when you open a Pull Request, Travis CI will run your tests:
❤️