/
.travis.yml
63 lines (60 loc) · 1.56 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
os: linux
dist: xenial
cache: pip
language: python
python:
- "3.7"
install:
- pip install --upgrade pip setuptools wheel
- |
for req in ci-requirements.txt dev-requirements.txt opt-requirements.txt requirements.txt; do
pip install -q -r $req
done
before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
script:
- flake8 --ignore=D,W503,W504 geomstats examples tests
- flake8 geomstats/geometry geomstats/learning
- |
if [[ $TRAVIS_PYTHON_VERSION != 3.8 ||
($TRAVIS_PYTHON_VERSION == 3.8 &&
$GEOMSTATS_BACKEND != tensorflow) ]]; then
nose2 --with-coverage tests
fi
env:
- GEOMSTATS_BACKEND=numpy
- GEOMSTATS_BACKEND=pytorch
- GEOMSTATS_BACKEND=tensorflow
after_success:
- bash <(curl -s https://codecov.io/bash) -c -F $GEOMSTATS_BACKEND
- >
PYTHONPATH=. sphinx-build
-b html
-D version=latest
-D release=latest
docs
docs/_build
deploy:
- provider: pages
skip_cleanup: true
token: $GITHUB_PAGES_TOKEN
keep_history: true
repo: geomstats/geomstats.github.io
target_branch: master
fqdn: geomstats.github.io
project_name: geomstats
on:
condition: >
$TRAVIS_PYTHON_VERSION = "3.7" &&
$GEOMSTATS_BACKEND = "numpy" &&
($TRAVIS_BRANCH = "master" || -n $TRAVIS_TAG)
repo: geomstats/geomstats
local_dir: docs/_build
- provider: pypi
username: $PYPI_USER
password: $PYPI_PASSWORD
on:
repo: geomstats/geomstats
tags: true
distributions: "sdist bdist_wheel"
skip_existing: true