1
- # vim ft=yaml
2
- # travis-ci.org definition for stl_tools build
3
- #
1
+ language : python
2
+ python :
3
+ - " 2.7"
4
+ - " 3.6"
5
+
6
+ notifications :
7
+ email : false
4
8
5
- language : c
6
- env :
7
- - PYTHON=python PYSUF='' PYVER=2.7
8
- - PYTHON=python3 PYSUF='3' PYVER=3.2
9
9
install :
10
- - sudo apt-get update # needed for python3-numpy
11
- - sudo apt-get install $PYTHON-dev
12
- - sudo apt-get install $PYTHON-numpy
13
- - sudo apt-get install $PYTHON-scipy
14
- - sudo apt-get install $PYTHON-setuptools
15
- - sudo apt-get install $PYTHON-nose
16
- - sudo easy_install$PYSUF pip
17
- - sudo pip install Pillow
18
- - if [[ $PYVER == '2.7' ]]; then sudo apt-get install $PYTHON-matplotlib; fi
19
- -
if [[ $PYVER == '3.2' ]]; then sudo pip-$PYVER install git+git://github.com/matplotlib/[email protected] ; fi
20
- - $PYTHON setup.py build
21
- - sudo $PYTHON setup.py install
10
+ # set up basic conda env via miniconda
11
+ - sudo apt-get update
12
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
13
+ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
14
+ else
15
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
16
+ fi
17
+ - bash miniconda.sh -b -p $HOME/miniconda
18
+ - export PATH="$HOME/miniconda/bin:$PATH"
19
+ - hash -r
20
+ - conda config --set always_yes yes --set changeps1 no
21
+ - conda update -q conda
22
+ - conda info -a
23
+ # install deps
24
+ - conda install pytest numpy scipy matplotlib
25
+ - python setup.py develop
26
+
22
27
script :
23
- # Change into an innocuous directory and find tests from installation
24
- - mkdir $HOME/.matplotlib
25
- - " echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
26
- - " echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"
27
- - " cd stl_tools"
28
- - " $PYTHON test/test_stl.py"
28
+ - pytest stl_tools
0 commit comments