Skip to content

Commit 0f710d4

Browse files
committed
updated travis config for container based infrastructure
1 parent 78fadba commit 0f710d4

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.travis.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
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
48

5-
language: c
6-
env:
7-
- PYTHON=python PYSUF='' PYVER=2.7
8-
- PYTHON=python3 PYSUF='3' PYVER=3.2
99
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+
2227
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

Comments
 (0)