/
.travis.yml
50 lines (43 loc) · 1.35 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
# 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
dist: trusty
sudo: required
cache:
apt: true
pip: true
env:
- CONDA="python=2.7 numpy>=1.11 scipy=0.17.0" KERNEL="python2"
- CONDA="python=3.5 scipy" KERNEL="python3"
- CONDA="python=3.6 scipy" KERNEL="python3"
before_install:
- sudo apt-get install -qq octave octave-signal liboctave-dev;
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
- octave --eval "pkg install control-3.2.0.tar.gz"
- octave --eval "pkg install signal-1.4.1.tar.gz"
- 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 jupyter pytest pip nose
- source activate test
- travis_retry pip install codecov
install:
- export PYTHONWARNINGS=all
- pip install -e .[test]
- mkdir -p ~/.jupyter
- echo "c.ExecutePreprocessor.kernel_name='${KERNEL}'" > ~/.jupyter/jupyter_nbconvert_config.py
script:
# run coverage on py3.5, regular on others
- if [[ $CONDA == python=3.5* ]]; then
make cover;
else
make test;
fi
- make docs
after_success:
- codecov