forked from pymanopt/pymanopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (60 loc) · 1.27 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
os: linux
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/601eba4ae3738ceb2406
on_success: change
on_failure: always
on_start: never
addons:
apt:
update: true
install:
- pip install --upgrade pip setuptools wheel
- pip install -q -r dev-requirements.txt
- pip install -q -r requirements.txt
script:
- flake8 docs/conf.py examples pymanopt setup.py tests
- >
nose2 tests
--verbose
--with-coverage
after_success:
- coveralls
- >
PYTHONPATH=. sphinx-build
-b html
-D version=latest
-D release=latest
docs
website/docs
deploy:
- provider: pypi
username: $TWINE_USER
password: $TWINE_PW
on:
repo: pymanopt/pymanopt
tags: true
distributions: "sdist bdist_wheel"
skip_existing: true
- provider: pages
skip_cleanup: true
token: $GITHUB_PAGES_TOKEN
keep_history: true
repo: pymanopt/pymanopt.github.io
target_branch: master
fqdn: www.pymanopt.org
project_name: pymanopt
on:
condition: >
$TRAVIS_PYTHON_VERSION = "3.7" &&
($TRAVIS_BRANCH = "master" || -n $TRAVIS_TAG)
repo: pymanopt/pymanopt
local_dir: website