-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
53 lines (45 loc) · 1.15 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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
cache:
- pip
before_install:
- travis_retry sudo apt-get install -y libblas-dev liblapack-dev libopenblas-dev ffmpeg libx264-dev
# command to install dependencies and necessary packages to run tests
install:
- travis_retry pip install -q -r test_requirements.txt
- pip install -e .
# command to run tests
script:
# run tests
- pytest -v --cov=./
# test installation
- python setup.py install
# install packages for docs and make docs
- travis_retry pip install -q ipython Sphinx sphinx-gallery numpydoc sphinx-rtd-theme sphinx-bootstrap-theme
- cd docs
# custom makefile directive
- make githubio-docs && cd ..
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
# push only once
python: "3.7"
local_dir: docs/build/html/
- provider: pypi
user: "__token__"
password: $PYPI_TOKEN
on:
distributions: sdist
tags: true
branch: main
repo: gallantlab/pymoten
python: "3.7"