Skip to content

Commit e4ce2f2

Browse files
committed
Document Continuous Integration Information
1 parent ad704ce commit e4ce2f2

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
# to access your GitHub repositories.
66
# 3. Create a file like this one you're reading at `your-rails-app/.travis.yml`:
77

8-
98
language: ruby
109
rvm:
1110
- 2.2.2
1211
# Add more Ruby versions to list if supported,
1312
# Travis supports these versions: http://rubies.travis-ci.org/
1413

1514
addons:
16-
firefox: "37.0.2" # Set Firefox Version
15+
firefox: "37.0.2" # Set Firefox Version if needed.
1716

18-
# Use xvfb to setup fake monitor display so Firefox GUI can be used by specs:
17+
# If needed, use xvfb to setup fake monitor display so Firefox GUI can be used by specs:
1918
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-GUI-(e.g.-a-Web-browser)
2019
before_install:
2120
- "export DISPLAY=:99.0"
@@ -31,10 +30,14 @@ before_install:
3130
# script:
3231
# - rake # `rake` is the Travis default, which runs `rake test`
3332

33+
# 5. OPTIONAL Add a Build Status Badge to your README, follow instructions here:
34+
# http://docs.travis-ci.com/user/status-images/
35+
3436
# Suggested docs
3537
# --------------
3638
# Getting Started: http://docs.travis-ci.com/user/getting-started/
3739
# Ruby & Travis CI docs: http://docs.travis-ci.com/user/languages/ruby/
3840
# Supported Ruby Versions: http://rubies.travis-ci.org/
3941
# Custom build task: http://docs.travis-ci.com/user/customizing-the-build/
40-
# GUI, Browsers, xvfb: http://docs.travis-ci.com/user/gui-and-headless-browsers/
42+
# GUI, Browsers, xvfb: http://docs.travis-ci.com/user/gui-and-headless-browsers/
43+
# Build Status Badge for README: http://docs.travis-ci.com/user/status-images/

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# In Progress
2-
- Introduce Continuous Integration to the project with Travis CI
3-
- Add Travis CI build status badge to README
1+
# 1/May/2015
2+
- Introduce Continuous Integration to the project with Travis CI https://github.com/eliotsykes/rspec-rails-examples/pull/58 (Eliot Sykes)
3+
- Add Travis CI build status badge to README https://github.com/eliotsykes/rspec-rails-examples/pull/58 (Eliot Sykes)
44

55
# 27/Apr/2015
66
- Remove nested expectation to make spec more understandable https://github.com/eliotsykes/rspec-rails-examples/pull/54 (Andy Waite)

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Hopefully this will be of help to those of you learning RSpec and Rails. If ther
4848
- [Helper Specs & Docs](#helper-specs--docs)
4949
- [Routing Specs & Docs](#routing-specs--docs)
5050
- [Enable Spring for RSpec](#enable-spring-for-rspec)
51-
- [Continuous Integration with Travis CI](#continuous-integration-with-travis-ci)
51+
- [Automated Continuous Integration with Travis CI](#automated-continuous-integration-with-travis-ci)
5252
- [Contributors](#contributors)
5353

5454
<!-- /MarkdownTOC -->
@@ -267,13 +267,18 @@ bin/rspec
267267
See the spring-commands-rspec README for up-to-date installation instructions:
268268
https://github.com/jonleighton/spring-commands-rspec
269269

270-
# Continuous Integration with Travis CI
270+
# Automated Continuous Integration with Travis CI
271+
272+
Continuous Integration (CI) is the practice of integrating new code into the master branch frequently, to help detect merge conflicts, bugs, and improve the quality of the software a development team writes.
273+
274+
CI is usually accompanied by running an application's test suite against the latest code changes, and flagging any test failures that are found. Developers are expected to investigate and fix these failures to maintain a passing test suite and therefore quality.
275+
276+
[Travis CI](https://travis-ci.org) is a build server that helps automate the CI process. Travis CI runs an application's tests against the latest changes pushed to the application's code respository. In this project, Travis CI runs the project's tests (`rake test`) on pull requests and on changes to the master branch.
271277

272278
Travis CI configuration how-to and example:
273-
- [.travis.yml](.travis.yml)
274-
- [Our Travis CI Build!](https://travis-ci.org/eliotsykes/rspec-rails-examples)
275-
- TODO: What is Continous Integration? Why have it?
276-
- TODO: Travis CI README Badge HOWTO
279+
- [.travis.yml](.travis.yml) - Travis CI's configuration file (with instructions)
280+
- [Our Travis CI build!](https://travis-ci.org/eliotsykes/rspec-rails-examples)
281+
- Our Travis CI badge (hopefully its green): [![Build Status](https://travis-ci.org/eliotsykes/rspec-rails-examples.svg?branch=master)](https://travis-ci.org/eliotsykes/rspec-rails-examples)
277282

278283
---
279284

@@ -283,5 +288,4 @@ Travis CI configuration how-to and example:
283288
- Vitaly Tatarintsev https://github.com/ck3g
284289
- Ryan Wold https://afomi.com/
285290
- Andy Waite http://blog.andywaite.com/
286-
- Your name here, contributions are welcome and easy, just fork the GitHub repo, make your changes, then submit your pull request! Please ask if you'd like some help.
287-
291+
- Your name here, contributions are welcome and easy, just fork the GitHub repo, make your changes, then submit your pull request! Please ask if you'd like some help.

0 commit comments

Comments
 (0)