language: python
sudo: false
cache:
  - pip
python:
  - 2.7
  - 3.5
  - 3.6
install:
  - |
    if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then
      python2 -m pip install -U pip
      python2 -m pip install ipykernel "ipython<6"
      python2 -m ipykernel install
    fi
    if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then
      python -m pip install -U pip
      python -m pip install ipykernel "ipython<6"
      python -m ipykernel install
    fi
    pip install -e .
    pip install -r requirements-dev.txt
script: 
  - pytest -v --maxfail=2 --cov=papermill papermill/tests
after_success:
  - coveralls
language: python
sudo: false
cache:
  - pip
python:
  - 2.7
  - 3.5
  - 3.6
install:
  - |
    python2 -m pip install -U pip
    python2 -m pip install ipykernel "ipython<6"
    python2 -m ipykernel install
    python -m pip install -U pip
    python -m pip install ipykernel "ipython<6"
    python -m ipykernel install
    pip install -e .
    pip install -r requirements-dev.txt
script:
  - pytest -v --maxfail=2 --cov=papermill papermill/tests
after_success:
  - coveralls

Install both py3 and py2 kernel
Install both py3 and py2 kernel
