-
Notifications
You must be signed in to change notification settings - Fork 132
/
.travis.yml
68 lines (59 loc) · 1.47 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
67
68
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
cache:
- pip
before_install:
- travis_retry sudo apt-get install -y inkscape
install:
- pip install numpy cython
- pip install -e . --no-build-isolation
- python -c 'import cortex; print(cortex.__full_version__)'
script:
# install necessary packages to run tests and get coverage
- travis_retry pip install -q -U pytest pytest-cov codecov
- pytest --cov=./
# test installation
- python setup.py install
# install packages for docs and make docs
- travis_retry pip install -q ipython Sphinx sphinx-gallery numpydoc
- cd docs && make html && cd ..
# Tell GitHub not to use jekyll to compile the docs
- touch docs/_build/html/.nojekyll
after_success:
- codecov
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: main
tags: true
# push only once
python: "3.9"
local_dir: docs/_build/html/
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep-history: true
on:
branch: main
tags: true
# push only once
python: "3.9"
local_dir: docs/_build/html/
repo: pycortex/pycortex.github.io
target_branch: main
- provider: pypi
user: "__token__"
password: $PIPY_TOKEN
on:
distributions: sdist
tags: true
branch: main
repo: gallantlab/pycortex
python: "3.9"