language: python

python:
  - 2.6
  - 2.7
  - 3.3
  - 3.4
  - 3.5

sudo: false

addons:
  apt_packages:
    - libbz2-dev
    - libhdf5-serial-dev
    - liblzo2-dev

install:
  - pip install cython
  - pip install .
  - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi

script:
  - mkdir clean_directory && cd clean_directory
  - python -m tables.tests.test_all

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/58f8a9014ef02f6217ec
    on_success: change


language: python

python:
  - 2.6
  - 2.7
  - 3.3
  - 3.4
  - 3.5

sudo: false

addons:
  apt_packages:
    - libbz2-dev
    - libhdf5-serial-dev
    - liblzo2-dev

before_install:
  - pip install cython
  - python setup.py sdist

install:
  - pip install dist/*.tar.gz
  - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi

script:
  - cd .. && python -m tables.tests.test_all

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/58f8a9014ef02f6217ec
    on_success: change


Make Travis test installing from the sdist
Make Travis test installing from the sdist

The sdist is what we are uploading to pypi. We should make sure there's
nothing wrong with it.
