forked from jupyterlab/jupyterlab-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (34 loc) · 1.13 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
language: python
python:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
cache:
pip: true
directories:
- /home/travis/.yarn-cache/
before_install:
- nvm install 10
install: pip install --upgrade --upgrade-strategy=eager pytest pytest-asyncio "jupyterlab~=2.0"
script:
# Build the sdist (identical to what will be uploaded to eg pypi on release)
- python setup.py sdist
# Linter checks
- jlpm run eslint-check
# Install the extension from the sdist ensuring the cache is unused
- pip install jupyterlab_git[test] --pre --no-index --find-links=dist --no-deps --no-cache-dir -v
# Install the extension dependencies based on the current setup.py
- pip install jupyterlab_git[test]
# Log the current state of jupyterlab's extensions
- jupyter labextension list
# Rebuild jupyterlab to include our extension
- jupyter lab build
# Run the Python tests
- pytest jupyterlab_git -r ap
# Run the TS/JS tests
- jlpm run test
# Run the standard jupyterlab browser integration test
- python -m jupyterlab.browser_check
# Run our extension-specific browser integration test
- python tests/test-browser/run_browser_test.py