CI with TravisCI

Objectives

Duration: 45 minutes

What is Continuous Integration?

First steps: Initial Travis config for a single Python version (3.6)

language: python
sudo: false

# Only run on master since we'll be using branches for our PR
branches:
  only:
    - master

# What Python version to use
python:
  - 3.6

# How do we install?
install:
  - pip install .

# How do we test?
script:
  - pytest

More modifications

matrix:
  include:
    - python: 3.6
      env: MINICONDA="y"

before_install:
  - |
    if [[ $MINICONDA == "y" ]]; then
      wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
      bash miniconda.sh -b -p $MINICONDA_DIR
      export PATH="$MINICONDA_DIR/bin:$PATH"
      hash -r
      conda config --set always_yes yes --set changeps1 no
      conda update -q conda
      conda info -a
      conda install numpy
    fi

More things possible