forked from blink1073/oct2py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (36 loc) · 1.14 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
# travis-ci.org definition for oct2py build
# After changing this file, check it on:
# http://lint.travis-ci.org/
# http://conda.pydata.org/docs/travis.html
language: python
env:
- CONDA="python=2.7 numpy=1.7"
- CONDA="python=3.3 numpy"
- CONDA="python=3.4 numpy"
before_install:
- sudo apt-add-repository -y ppa:picaso/octave;
- sudo apt-get update -qq;
- sudo apt-get install -qq octave liboctave-dev;
- 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 $CONDA IPython pip nose scipy
- source activate test
- travis_retry pip install coveralls
install:
- export PYTHONWARNINGS=all
- python setup.py install
script:
# run coverage on py2.7, regular on others
- if [[ $CONDA == python=2.7* ]]; then
nosetests --exe -v --with-doctest --with-cov --cover-package oct2py;
else
nosetests --exe -v oct2py;
fi
- make docs
after_success:
- coveralls