Skip to content

Update testing exercise #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions 2015-2016/testing/testing-exercise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ Software Testing Exercise
For this, we'll walk you through getting `Travis CI`_ set up on
on of your repositories.

1. The first thing you'll need is to create a repository on github.
You can either make your own, or you can clone our `Systemview`_
web application by running:

.. code-block:: none

$ git clone [email protected]:devopsbootcamp/systemview.git
1. The first thing you'll need is to create a repository on github,
and name it something helpful so you can remember what it does!
Don't worry about adding a license, but do put a little blurb
in the Description box about what the repo is for, and opt to
create a README.

2. Then, in your repo you'll want to add a :code:`.travis.yml` file
to your repo. It should look something like this:
to your repo. For example, the travis file for our systemview
app will look something like this:

.. code-block:: yaml

language: python
python:
- 2.6
- 2.7
- 3.4
matrix:
allow_failures:
fast_finish: true
script: py.test adder/lib.py
language: python
python:
- 2.6
- 2.7
- 3.4
- pypy
- pypy3
- asdfasdf
matrix:
allow_failures:
- python: asdfasdf
fast_finish: true
script: py.test adder/lib.py

3. When you open a pull request on your repo, travis will use this
file to automatically run your tests. It will clone your repo
Expand All @@ -34,4 +37,9 @@ on of your repositories.
and verify that everything is looking good!

4. Try it out, and let us know if you have any troubles!
To see Travis in action, check out
the tinsy flask app Travis at
https://travis-ci.org/DevOpsBootcamp/tinsy-flask-app

.. _Travis CI: https://travis-ci.org/
.. _travis demo: https://github.com/elijahcaine/travis-demo