notebook/.travis.yml

79 lines
2.0 KiB
YAML
Raw Normal View History

2015-04-11 07:45:21 +08:00
# http://travis-ci.org/#!/ipython/ipython
language: python
2016-02-13 04:51:23 +08:00
cache:
directories:
2016-02-13 06:21:06 +08:00
- $HOME/.cache/bower
2017-12-14 01:57:57 +08:00
- $HOME/.cache/pip
2016-02-13 05:06:19 +08:00
python:
2017-09-20 17:37:38 +08:00
- 3.6
- 2.7
2016-02-23 06:15:38 +08:00
sudo: required
2016-02-13 04:51:23 +08:00
2015-04-11 07:45:21 +08:00
env:
global:
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
matrix:
- GROUP=js/notebook
2015-04-11 07:45:21 +08:00
- GROUP=python
- GROUP=js/base
- GROUP=js/services
- GROUP=js/tree
2017-08-26 04:22:25 +08:00
- GROUP=docs
2016-02-23 06:15:38 +08:00
2015-04-11 07:45:21 +08:00
before_install:
- pip install --upgrade pip
- pip install --upgrade setuptools wheel nose coverage codecov
- nvm install 6.9.2
- nvm use 6.9.2
- node --version
- npm --version
2016-02-10 07:47:44 +08:00
- npm upgrade -g npm
- npm install
2017-01-06 23:54:59 +08:00
- |
2017-08-26 03:21:27 +08:00
if [[ $GROUP == js* ]]; then
2017-01-06 23:54:59 +08:00
npm install -g casperjs@1.1.3 phantomjs-prebuilt@2.1.7
fi
2015-04-11 07:45:21 +08:00
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
2017-08-26 03:21:27 +08:00
- |
if [[ $GROUP == docs ]]; then
2017-08-26 04:00:14 +08:00
pip install -r docs/doc-requirements.txt
2017-08-26 03:21:27 +08:00
fi
2016-02-23 06:15:38 +08:00
2015-04-11 07:45:21 +08:00
install:
2016-02-13 06:21:06 +08:00
- pip install -f travis-wheels/wheelhouse file://$PWD#egg=notebook[test]
2017-12-14 02:04:37 +08:00
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
# Work around https://github.com/ipython/ipykernel/issues/288
pip install ipykernel==4.6.1
fi
- wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
2016-02-23 06:15:38 +08:00
2015-04-11 07:45:21 +08:00
script:
2017-12-14 01:48:44 +08:00
- jupyter kernelspec list
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
2016-02-13 06:21:06 +08:00
- 'if [[ $GROUP == python ]]; then nosetests -v --with-coverage --cover-package=notebook notebook; fi'
2017-09-01 18:01:03 +08:00
- |
if [[ $GROUP == docs ]]; then
EXIT_STATUS=0
make -C docs/ html || EXIT_STATUS=$?
make -C docs/ linkcheck || EXIT_STATUS=$?
pytest --nbval --current-env docs || EXIT_STATUS=$?
exit $EXIT_STATUS
fi
2015-04-11 07:45:21 +08:00
2016-02-13 05:06:19 +08:00
matrix:
include:
- python: 3.4
env: GROUP=python
2017-09-20 17:37:38 +08:00
- python: 3.5
env: GROUP=python
2017-08-26 05:02:13 +08:00
exclude:
- python: 2.7
env: GROUP=docs
2016-02-23 06:15:38 +08:00
2016-02-13 06:21:06 +08:00
after_success:
2016-02-23 06:15:38 +08:00
- codecov