diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6472769 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: python +python: + - 2.6 + - 2.7 + - 3.3 + - 3.4 + +before_install: + # Use utf8 encoding. Should be default, but this is insurance against + # future changes + - export PYTHONIOENCODING=UTF8 + - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh + - chmod +x miniconda.sh + - ./miniconda.sh -b + - export PATH=/home/travis/miniconda/bin:$PATH + - conda update --yes conda + +install: + - conda create --yes -n test python=$TRAVIS_PYTHON_VERSION + - source activate test + - conda install --yes numpy matplotlib pip + - pip install coveralls pytest pytest-cov + +script: + - py.test --cov ds9norm test_ds9norm.py + +after_success: + - coveralls