-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (55 loc) · 1.59 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
sudo: false
language: python
branches:
only:
- master
- devel
matrix:
include:
- python: "2.7"
env: NUMPY=numpy
- python: "3.4"
env: NUMPY=numpy
- python: "3.5"
env: NUMPY=numpy
- python: "3.6"
env: NUMPY=numpy
- python: "3.7"
dist: xenial
env: NUMPY=numpy
- python: "pypy"
env: NUMPY="git+https://bitbucket.org/pypy/numpy.git"
addons:
apt:
packages:
- gfortran
- libblas-dev
- liblapack-dev
# command to install dependencies and translate deap in py3k
install:
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
cd "$PYENV_ROOT" && git pull
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
export PYPY_VERSION="4.0.1"
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
NUMPY=$NUMPY"@pypy-4.0.1"
pip install nose
fi
- pip install $NUMPY
# command to run tests
script:
- python setup.py nosetests --verbosity=3 --with-doctest
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/f17745fc250ffb09c0e9
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false