forked from scikit-fuzzy/scikit-fuzzy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (53 loc) · 1.55 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
# vim ft=yaml
# travis-ci.org definition for skfuzzy build, modified from scikit-image
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
python:
- 3.8
env:
- ENV="python=3.5 numpy"
- ENV="python=3.6 numpy"
- ENV="python=3.7 numpy"
- ENV="python=3.8 numpy"
services:
- xvfb
before_install:
- sudo apt-get update
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda;
- export PATH="$HOME/miniconda/bin:$PATH";
- hash -r;
- conda config --set always_yes yes;
- conda update conda;
- conda info -a;
- travis_retry conda create -n test $ENV scipy pip pytest flake8 nose networkx matplotlib sphinx numpydoc;
- source activate test;
- travis_retry conda install pillow;
- travis_retry pip install coveralls
install:
- tools/header.py "Dependency versions"
- tools/build_versions.py
- export PYTHONWARNINGS=all
- python setup.py build_ext --inplace
- pip install -e .
- pip install -r DEPENDS-docs.txt
script:
# Run all tests with minimum dependencies
- nosetests --exe -v skfuzzy
# Run pep8 and flake tests
- flake8 --exclude=test_* skfuzzy docs/examples
after_success:
- coveralls
before_deploy:
- cd docs && make
- touch build/html/.nojekyll
deploy:
provider: pages
skip_cleanup: true
token: $TRAVIS_DEPLOY
keep_history: true
local_dir: docs/build/html
on:
branch: master
condition: $ENV = "python=3.8 numpy"