2015-04-11 07:45:21 +08:00
|
|
|
# http://travis-ci.org/#!/ipython/ipython
|
|
|
|
language: python
|
2016-02-13 04:51:23 +08:00
|
|
|
|
2015-06-12 02:49:34 +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
|
2016-02-23 06:15:38 +08:00
|
|
|
|
2018-02-14 01:01:00 +08:00
|
|
|
|
2015-04-11 07:45:21 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
|
|
|
|
matrix:
|
2017-01-21 10:32:43 +08:00
|
|
|
- GROUP=js/notebook
|
2015-04-11 07:45:21 +08:00
|
|
|
- GROUP=python
|
|
|
|
- GROUP=js/base
|
|
|
|
- GROUP=js/services
|
2016-02-23 06:15:38 +08:00
|
|
|
|
2015-04-11 07:45:21 +08:00
|
|
|
before_install:
|
2016-02-13 01:49:27 +08:00
|
|
|
- pip install --upgrade pip
|
2016-02-13 08:21:32 +08:00
|
|
|
- pip install --upgrade setuptools wheel nose coverage codecov
|
2016-12-07 08:29:08 +08:00
|
|
|
- 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
|
2016-05-08 22:48:26 +08:00
|
|
|
- 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
|
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
|
2019-01-09 17:45:35 +08:00
|
|
|
pip install --upgrade pytest
|
2017-08-26 03:21:27 +08:00
|
|
|
fi
|
2018-02-14 01:01:00 +08:00
|
|
|
- |
|
|
|
|
if [[ $GROUP == selenium ]]; then
|
2019-01-09 01:10:34 +08:00
|
|
|
pip install --upgrade selenium pytest
|
2018-02-14 01:01:00 +08:00
|
|
|
# Install Webdriver backend for Firefox:
|
|
|
|
wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
|
|
|
|
mkdir geckodriver
|
|
|
|
tar -xzf geckodriver-v0.19.1-linux64.tar.gz -C geckodriver
|
|
|
|
export PATH=$PATH:$PWD/geckodriver
|
|
|
|
fi
|
2018-09-27 01:34:57 +08:00
|
|
|
- pip install "attrs>=17.4.0"
|
2016-02-23 06:15:38 +08:00
|
|
|
|
2015-04-11 07:45:21 +08:00
|
|
|
install:
|
2019-03-05 21:16:12 +08:00
|
|
|
- pip install --pre .[test] $EXTRA_PIP
|
2019-03-05 19:27:53 +08:00
|
|
|
- pip freeze
|
2017-03-14 05:38:03 +08:00
|
|
|
- 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
|
2018-01-17 23:16:39 +08:00
|
|
|
- |
|
|
|
|
symlinks=$(find . -type l| grep -v './node_modules/' | grep -v './git-hooks')
|
|
|
|
if [[ $(echo $symlinks) ]]; then
|
|
|
|
echo "Repository contains symlinks which won't work on windows:"
|
|
|
|
echo $symlinks
|
|
|
|
echo ""
|
|
|
|
false
|
|
|
|
else
|
|
|
|
true
|
|
|
|
fi
|
2016-03-16 19:10:13 +08:00
|
|
|
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
|
2018-02-14 01:01:00 +08:00
|
|
|
- 'if [[ $GROUP == python ]]; then nosetests -v --exclude-dir notebook/tests/selenium --with-coverage --cover-package=notebook notebook; fi'
|
|
|
|
- 'if [[ $GROUP == selenium ]]; then py.test -sv notebook/tests/selenium; fi'
|
2017-09-01 18:01:03 +08:00
|
|
|
- |
|
|
|
|
if [[ $GROUP == docs ]]; then
|
|
|
|
EXIT_STATUS=0
|
|
|
|
make -C docs/ html || EXIT_STATUS=$?
|
2018-04-04 07:05:45 +08:00
|
|
|
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE == cron ]]; then
|
|
|
|
make -C docs/ linkcheck || EXIT_STATUS=$?;
|
|
|
|
fi
|
|
|
|
|
2017-09-01 18:01:03 +08:00
|
|
|
pytest --nbval --current-env docs || EXIT_STATUS=$?
|
|
|
|
exit $EXIT_STATUS
|
|
|
|
fi
|
2015-04-11 07:45:21 +08:00
|
|
|
|
2018-01-17 23:16:39 +08:00
|
|
|
|
2016-02-13 05:06:19 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-02-14 01:01:00 +08:00
|
|
|
- python: 3.6
|
|
|
|
env:
|
|
|
|
- GROUP=selenium
|
|
|
|
- JUPYTER_TEST_BROWSER=firefox
|
|
|
|
- MOZ_HEADLESS=1
|
|
|
|
addons:
|
|
|
|
firefox: 57.0
|
2017-09-20 17:37:38 +08:00
|
|
|
- python: 3.5
|
|
|
|
env: GROUP=python
|
2019-03-05 21:16:02 +08:00
|
|
|
- python: 3.7
|
|
|
|
dist: xenial
|
2018-05-18 01:52:47 +08:00
|
|
|
env: GROUP=python
|
2018-02-14 01:01:00 +08:00
|
|
|
- python: 3.6
|
2017-08-26 05:02:13 +08:00
|
|
|
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
|