File: .travis.yml

package info (click to toggle)
jupyter-notebook 5.7.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,764 kB
  • sloc: python: 12,098; makefile: 269; sh: 74
file content (115 lines) | stat: -rw-r--r-- 3,012 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# http://travis-ci.org/#!/ipython/ipython
language: python

cache:
    directories:
        - $HOME/.cache/bower
        - $HOME/.cache/pip
python:
    - 3.6
    - 2.7

sudo: required


env:
  global:
    - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
  matrix:
    - GROUP=js/notebook
    - GROUP=python
    - GROUP=js/base
    - GROUP=js/services

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
    - npm upgrade -g npm
    - npm install
    - |
      if [[ $GROUP == js* ]]; then
        npm install -g casperjs@1.1.3 phantomjs-prebuilt@2.1.7
      fi
    - |
      if [[ $GROUP == docs ]]; then
        pip install -r docs/doc-requirements.txt
      fi
    - |
      if [[ $GROUP == selenium ]]; then
        pip install selenium
        # 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

install:
    - pip install --pre .[test] $EXTRA_PIP
    - pip freeze
    - 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


script:
    - jupyter kernelspec list
    - |
      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
    - 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
    - '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'
    - |
      if [[ $GROUP == docs ]]; then
        EXIT_STATUS=0
        make -C docs/ html || EXIT_STATUS=$?

        if [[ $TRAVIS_EVENT_TYPE == cron ]]; then
          make -C docs/ linkcheck || EXIT_STATUS=$?;
        fi

        pytest --nbval --current-env docs || EXIT_STATUS=$?
        exit $EXIT_STATUS
      fi


matrix:
    include:
        - python: 3.6
          env:
          - GROUP=selenium
          - JUPYTER_TEST_BROWSER=firefox
          - MOZ_HEADLESS=1
          addons:
            firefox: 57.0

        - python: 3.4
          env: GROUP=python
        - python: 3.5
          env: GROUP=python
        - python: 3.7
          dist: xenial
          env: GROUP=python
        - python: 3.6
          env: GROUP=docs
        - python: 3.6
          env:
          - GROUP=python
          - EXTRA_PIP="tornado<5"
        - python: 2.7
          env:
          - GROUP=python
          - EXTRA_PIP="tornado<5"

after_success:
    - codecov