From 3c81a2ff8f3d1507d29921136975709f0bc4032d Mon Sep 17 00:00:00 2001 From: Lucy Wyman Date: Fri, 23 Oct 2015 12:27:04 -0700 Subject: [PATCH 1/2] Update testing exercise --- testing/testing-exercise.rst | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/testing/testing-exercise.rst b/testing/testing-exercise.rst index 6f99f1b..7c5fde2 100644 --- a/testing/testing-exercise.rst +++ b/testing/testing-exercise.rst @@ -5,27 +5,32 @@ 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: + You can either make your own, or you can clone our `travis demo`_ + repository: .. code-block:: none - $ git clone git@github.com:devopsbootcamp/systemview.git + git@github.com:ElijahCaine/travis-demo.git 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 @@ -35,3 +40,5 @@ on of your repositories. 4. Try it out, and let us know if you have any troubles! +.. _Travis CI: https://travis-ci.org/ +.. _travis demo: https://github.com/elijahcaine/travis-demo From 200b03655548680e58ac0f04ff17a5e3a05be821 Mon Sep 17 00:00:00 2001 From: Lucy Wyman Date: Tue, 29 Mar 2016 14:52:48 -0700 Subject: [PATCH 2/2] Modify testing exercise --- 2015-2016/testing/testing-exercise.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/2015-2016/testing/testing-exercise.rst b/2015-2016/testing/testing-exercise.rst index 7c5fde2..86dc3f3 100644 --- a/2015-2016/testing/testing-exercise.rst +++ b/2015-2016/testing/testing-exercise.rst @@ -4,13 +4,11 @@ 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 `travis demo`_ - repository: - -.. code-block:: none - - git@github.com:ElijahCaine/travis-demo.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. For example, the travis file for our systemview @@ -39,6 +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