forked from scikit-fuzzy/scikit-fuzzy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 1.7 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
# 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
# The Travis python is set to 3.2 for all builds, since we use the default python for the 3.2 build and the anaconda python otherwise
python:
- 3.6
env:
- ENV="python=2.7 numpy"
- ENV="python=3.4 numpy"
- ENV="python=3.5 numpy"
- ENV="python=3.6 numpy"
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- 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 six scipy pip flake8 nose networkx matplotlib;
- source activate test;
- if [[ $ENV == python=2.6* ]]; then
travis_retry conda install pillow=2.7;
travis_retry conda install pyqt;
else
travis_retry conda install pillow;
fi
- travis_retry pip install coveralls
install:
- tools/header.py "Dependency versions"
- tools/build_versions.py
- if [[ $ENV == python=2.6* ]]; then
travis_retry conda install unittest2;
fi
- export PYTHONWARNINGS=all
- python setup.py build_ext --inplace
script:
# Run all tests with minimum dependencies
- nosetests --exe -v skfuzzy
# Run pep8 and flake tests
- flake8 --exit-zero --exclude=test_*,six.py skfuzzy doc/examples
after_success:
- if [[ $ENV == python=3.3* ]]; then
coveralls;
fi