How to setup Travis CI
1. Signed up an account on https://travis-ci.org
2. Go to account page
Mine is: https://travis-ci.org/profile/JuanitoFatas
3. Sync account
4. Enable the repository
Click
5. Go to the repository settings page
Click the gear icon
Repository Settings Page
6. Copy the badge to README
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
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.
--
Now when you open a Pull Request, Travis CI will run your tests:
โค๏ธ