forked from jupyter/nbdime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (59 loc) · 1.29 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
47
48
49
50
51
52
53
54
55
56
57
58
59
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 6
- |
if [[ $GROUP == python ]]; then
pip install codecov
elif [[ $GROUP == js ]]; then
npm install -g codecov
fi
install:
- pip install --upgrade -e ".[test]"
- |
if [[ $GROUP == js ]]; then
cd nbdime-web
npm install
fi
before_script:
# Set up a virtual screen for Firefox browser testing:
- |
if [[ $GROUP == js ]]; then
export CHROME_BIN=chromium-browser
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
fi
git config --global user.email [email protected]
git config --global user.name "Travis CI"
script:
- |
if [[ $GROUP == python ]]; then
py.test -l --cov-report html --cov=nbdime
elif [[ $GROUP == js ]]; then
npm test
fi
after_success:
- 'if [[ $GROUP == js ]]; then cd ..; fi'
- codecov
before_cache:
# Do not cache our own package
- rm -rf nbdime/webapp/node_modules/nbdime
- rm -rf nbdime/webapp/node_modules/nbdime-webapp
- rm -rf nbdime-web/node_modules/nbdime