Skip to content

Commit

Permalink
Backend: Test That Site Builds With Travis CI
Browse files Browse the repository at this point in the history
Add configuration file for Travis CI, documentation for using Travis,
and a line to _config.yml to ignore directory Travis creates.
  • Loading branch information
harding committed Feb 25, 2015
1 parent fc10efd commit 77066ba
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: ruby
rvm:
- "2.0.0"

script: make all

notifications:
email:
recipients:
- dave@dtrt.org
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Build Status](https://travis-ci.org/bitcoin/bitcoin.org.svg?branch=master)

## How To Participate

*Bitcoin.org needs volunteers like you!* Here are some ways you can help:
Expand Down Expand Up @@ -86,6 +88,35 @@ git remote add upstream https://github.com/bitcoin/bitcoin.org.git

When submitting a pull request, please take required time to discuss your changes and adapt your work. It is generally a good practice to split unrelated changes into separate branchs and pull requests.

**Travis Continuous Integration (CI)**

Shortly after your Pull Request (PR) is submitted, a Travis CI job will
be added to [our queue](https://travis-ci.org/harding/bitcoin.org). This
will build the site and run some basic checks. If the job fails, you
will be emailed a link to the build log and the PR will indicate a
failed job. Read the build report and try to correct the problem---but
if you feel confused or frustrated, please ask for help on the PR (we're
always happy to help).

If you don't want a particular commit to be tested, add `[ci skip]`
anywhere in its commit message.

If you'd like to setup Travis on your own repository so you can test
builds before opening a pull request, it's really simple:

1. Make sure the master branch of your repository is up to date with the
bitcoin/bitcoin.org master branch.

2. Open [this guide](http://docs.travis-ci.com/user/getting-started/)
and perform steps one, two, and four. (The other steps are already
done in our master branch.)

3. After you push a branch to your repository, go to your branches page
(e.g. for user harding, github.com/harding/bitcoin.org/branches). A
yellow circle, green checkmark, or red X will appear near the branch
name when the build finishes, and clicking on the icon will take you
to the corresponding build report.

**How to make additional changes in a pull request**

You simply need to push additional commits on the appropriate branch of your GitHub repository. That's basically the same steps as above, except you don't need to re-create the branch and the pull request.
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ exclude:
- Gemfile
- Gemfile.lock
- Makefile
- vendor # Travis CI creates a vendor/ dir with files we shouldn't render

future: true
lsi: false
Expand Down

0 comments on commit 77066ba

Please sign in to comment.