Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.43 KB

File metadata and controls

45 lines (37 loc) · 1.43 KB

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,
    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 .travis.yml file to your repo. For example, the travis file for our systemview app will look something like this:
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
  1. When you open a pull request on your repo, travis will use this file to automatically run your tests. It will clone your repo into a fresh virtual machine, install your dependencies, use the version of python you specify, and then run your unit tests and verify that everything is looking good!
  2. 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