forked from ipython/ipykernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.03 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
python:
- "nightly"
- "3.7-dev"
- 3.6
- 3.5
- 3.4
sudo: false
install:
- |
# pip install
pip install --upgrade setuptools pip
pip install --pre .
pip install ipykernel[test] codecov
- |
# install matplotlib
if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
pip install matplotlib curio trio
fi
- |
# pin tornado
if [[ ! -z "$TORNADO" ]]; then
pip install tornado=="$TORNADO"
fi
- |
# pin IPython
if [[ ! -z "$IPYTHON" ]]; then
if [[ "$IPYTHON" == "master" ]]; then
SPEC=git+https://github.com/ipython/ipython#egg=ipython
else
SPEC="ipython==$IPYTHON"
fi
pip install --upgrade --pre "$SPEC"
fi
- pip freeze
script:
- jupyter kernelspec list
- pytest --cov ipykernel --durations 10 -v ipykernel
after_success:
- codecov
matrix:
include:
- python: 3.5
env:
- TORNADO="4.5.*"
- IPYTHON=master
- python: 3.6
env:
- IPYTHON=master
allow_failures:
- python: "nightly"