forked from jupyter/nbdime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.38 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
language: python
python:
- 3.5
- 3.4
- 3.3
- 2.7
sudo: false
env:
matrix:
- GROUP=python
matrix:
include:
- python: 3.5
env: GROUP=js
cache:
pip: true
directories:
- nbdime/webapp/node_modules # NPM packages
- nbdime-web/node_modules # NPM packages
before_install:
- nvm install 4
- pip install -r requirements.txt
- pip install pytest
- pip install pytest-cov
- 'if [[ $GROUP == python ]]; then pip install codecov; fi'
- 'if [[ $GROUP == js ]]; then npm install -g codecov; fi'
install:
- 'if [[ $GROUP == python ]]; then pip install -e ./; fi'
- 'if [[ $GROUP == js ]]; then cd ./nbdime-web; fi'
- 'if [[ $GROUP == js ]]; then npm install; fi'
before_script:
# Set up a virtual screen for Firefox browser testing:
- export CHROME_BIN=chromium-browser
- 'if [[ $GROUP == js ]]; then export DISPLAY=:99.0; fi'
- 'if [[ $GROUP == js ]]; then sh -e /etc/init.d/xvfb start; fi'
script:
- 'if [[ $GROUP == python ]]; then py.test -l --cov-report html --cov=nbdime; fi'
- 'if [[ $GROUP == js ]]; then npm test; fi'
after_success:
- 'if [[ $GROUP == js ]]; then cd ..; fi'
- codecov
before_cache:
# Do not cache our folder
- rm -rf nbdime/webapp/node_modules/nbdime
- rm -rf nbdime/webapp/node_modules/nbdime-webapp
- rm -rf nbdime-web/node_modules/nbdime