forked from nteract/papermill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: python
sudo: false
python:
- 2.7
- 3.5
- 3.6
matrix:
include:
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
# Try removing the google-compute-engine when this doesn't require sudo
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install setuptools pip --upgrade
- pip install -e .[test]
- pip install check-manifest flake8
# Needed for python 3.7 on travis to import boto because there's a partial package in the root site packages
- pip install google-compute-engine
- python -m ipykernel install --user
before_script:
- flake8 . --count --ignore=E203,E731,F811,W503 --max-complexity=23 --max-line-length=104 --show-source --statistics
script:
# cd so we test the install, not the repo
- check-manifest
- cd `mktemp -d`
- pytest -v --maxfail=2 --cov=papermill --pyargs papermill -W always
- mv .coverage $TRAVIS_BUILD_DIR/.coverage
- cd $TRAVIS_BUILD_DIR
- python setup.py sdist bdist_wheel
- python -m pip install -U --force-reinstall dist/papermill*.whl
- python -m pip install -U --force-reinstall --no-deps dist/papermill*.tar.gz
after_success:
- coverage xml -i
- codecov