-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
66 lines (54 loc) · 1.59 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
60
61
62
63
64
65
66
language: python
dist: focal
python:
- "3.7"
env:
global:
- DOWNLOADS=$HOME/downloads
- HTML_PATH=docs/build/html
# it's necessary to use pyqt5 because that is the version compatible with travis/qt
- OPT_DEP='nibabel pyqt5==5.11.3 vispy h5py==2.10 fooof bidso'
cache:
- directories:
- $DOWNLOADS
- $HOME/.cache/pip
before_install:
# create display with large resolution
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x16"
- python setup_wonambi.py --get_files
- git clone https://github.com/bids-standard/bids-examples.git tests/data/bids-example
install:
# install requirements
- pip install numpy scipy
- pip install $OPT_DEP
- pip install pytest
- pip install pytest-qt pytest-cov codecov plotly
- pip install sphinx sphinx_rtd_theme
- pip install -e .
before_script:
- "export DISPLAY=:99.0"
script:
- python -c "import vispy; print(vispy.sys_info()); exit()"
- python setup_wonambi.py --tests
# test without optional requirements (append .coverage)
- pip uninstall -y pytest-qt $OPT_DEP
- python setup_wonambi.py --test_import
# reinstall optional requirements to run the docs
- pip install $OPT_DEP
- python setup_wonambi.py --docs
after_success:
- codecov
notifications:
email: false
deploy:
- provider: pages
skip_cleanup: true
target_branch : master
local_dir : $HTML_PATH
repo : wonambi-python/wonambi-python.github.io
github_token : $GITHUB_TOKEN
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
on:
tags: true