|
1 | 1 | language: python |
2 | | -env: |
3 | | - - COVERAGE=--with-coverage |
4 | | -python: |
5 | | - - "2.7" |
6 | | - - "2.6" |
7 | | - - "3.3" |
8 | 2 | virtualenv: |
9 | 3 | system_site_packages: true |
10 | | -before_install: |
11 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh ; fi |
12 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then chmod +x miniconda.sh ; fi |
13 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then ./miniconda.sh -b ; fi |
14 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then export PATH=/home/travis/anaconda/bin:$PATH ; fi |
15 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then conda update --yes conda ; fi |
16 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then conda update --yes conda ; fi |
17 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION ; fi |
18 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then source activate testenv ; fi |
19 | | - - if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then conda install --yes numpy scipy nose ; fi |
20 | | - - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get update -qq ; fi |
21 | | - - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get install -qq python-scipy python-nose python-pip ; fi |
22 | | -install: |
23 | | - - python setup.py build_ext --inplace |
24 | | - - if [ "${COVERAGE}" == "--with-coverage" ]; then sudo pip install coverage; fi |
25 | | - - if [ "${COVERAGE}" == "--with-coverage" ]; then sudo pip install coveralls; fi |
26 | | -script: |
27 | | - - if [ "${COVERAGE}" == "--with-coverage" ]; then |
28 | | - - make test-coverage; |
29 | | - - else |
30 | | - - make test; |
31 | | - - fi |
| 4 | +env: |
| 5 | + matrix: |
| 6 | + - DISTRIB="ubuntu" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" |
| 7 | + COVERAGE="true" |
| 8 | + - DISTRIB="conda" PYTHON_VERSION="2.6" INSTALL_MKL="false" |
| 9 | + NUMPY_VERSION="1.6.2" SCIPY_VERSION="0.11.0" |
| 10 | + - DISTRIB="conda" PYTHON_VERSION="3.3" INSTALL_MKL="true" |
| 11 | + NUMPY_VERSION="1.8.1" SCIPY_VERSION="0.13.3" |
| 12 | +install: source continuous_integration/install.sh |
| 13 | +script: bash continuous_integration/test_script.sh |
32 | 14 | after_success: |
33 | | - - if [ "${COVERAGE}" == "--with-coverage" ]; then coveralls; fi |
34 | | - |
| 15 | + - if [[ "$COVERAGE" == "true" ]]; then coveralls; fi |
| 16 | +cache: apt |
0 commit comments