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
|
2016-02-13 05:06:19 +08:00
|
|
|
python:
|
|
|
|
- 3.5.1 # Set to 3.5.1 since travis has not yet included as default for 3.5
|
2016-02-13 05:28:49 +08:00
|
|
|
- 2.7
|
2016-02-23 06:15:38 +08:00
|
|
|
|
2015-04-11 07:45:21 +08:00
|
|
|
sudo: false
|
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=python
|
|
|
|
- GROUP=js/base
|
|
|
|
- GROUP=js/notebook
|
|
|
|
- GROUP=js/services
|
|
|
|
- GROUP=js/tree
|
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-02-23 06:15:38 +08:00
|
|
|
- nvm install 5.6
|
|
|
|
- nvm use 5.6
|
2016-02-10 07:47:44 +08:00
|
|
|
- npm upgrade -g npm
|
2016-05-08 22:48:26 +08:00
|
|
|
- npm install
|
2016-04-13 21:55:51 +08:00
|
|
|
- 'if [[ $GROUP == js* ]]; then npm install -g casperjs@1.1.0-beta5; fi'
|
2015-04-11 07:45:21 +08:00
|
|
|
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
|
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]
|
2016-02-23 06:15:38 +08:00
|
|
|
|
2015-04-11 07:45:21 +08:00
|
|
|
script:
|
2016-03-16 19:10:13 +08:00
|
|
|
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
|
2016-04-18 23:44:32 +08:00
|
|
|
- 'if [[ $GROUP == "js/notebook" ]]; then npm run lint; fi'
|
2016-02-13 06:21:06 +08:00
|
|
|
- 'if [[ $GROUP == python ]]; then nosetests -v --with-coverage --cover-package=notebook notebook; fi'
|
2015-04-11 07:45:21 +08:00
|
|
|
|
2016-02-13 05:06:19 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: 3.3
|
|
|
|
env: GROUP=python
|
|
|
|
- python: 3.4
|
|
|
|
env: GROUP=python
|
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
|