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 1 commit
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
33 changes: 20 additions & 13 deletions testing/testing-exercise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
[email protected]:ElijahCaine/travis-demo.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this my personal repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't fork it to dobc because permissions. Should I use mythmons instead? Or do a different repository? Or omit the option to clone the repo?


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 @@ -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