diff --git a/2015-2016/testing/testing-exercise.rst b/2015-2016/testing/testing-exercise.rst index 6f99f1b..86dc3f3 100644 --- a/2015-2016/testing/testing-exercise.rst +++ b/2015-2016/testing/testing-exercise.rst @@ -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 git@github.com: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 @@ -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