-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
61 lines (61 loc) · 1.35 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
language: python
python:
- '3.7'
- '3.8'
- '3.6'
- '3.5'
before_install:
- sudo apt-get update -qq
- pip install coveralls
dist: xenial
sudo: true
install: pip install .
script: coverage run --source sidpy setup.py test
stages:
- name: after_success
if: env(python) = "3.7"
after_success:
- pip list
- pip install sphinx>=3.1.1 sphinx-gallery sphinx-rtd-theme>=0.5.0 sphinx-autodoc-typehints numpydoc wget pysptools cvxopt scipy nbsphinx
- sudo apt-get install pandoc
- sphinx-build -b html -aET docs/source docs/_build/html
- touch docs/_build/html/.nojekyll
- coverage report -m
- coveralls
before_deploy:
- python setup.py sdist
- python setup.py bdist_wheel
deploy:
# Github pages deployment
- provider: pages
skip_cleanup: true
github-token: $GITHUBTOKEN
local_dir: docs/_build/html
on:
branch: master
python: 3.7
# Github releases deployment
- provider: releases
skip_cleanup: true
api_key: $GITHUBTOKEN
file_glob: true
file: dist/*
on:
tags: true
branch: master
# PyPi deployment
- provider: pypi
skip_cleanup: true
user:
secure: $PYPIUSER2
password:
secure: $PYPIPASS2
distributions: "sdist bdist_wheel"
file_glob: true
file:
- dist/*.whl
- dist/*.tar.gz
on:
tags: true
branch: master
python: 3.7