dist: trusty
language: python
python:
    - 2.7

before_install:
    - sudo pip install pygments markdown docopt pyyaml
    - sudo python setup.py install

install:
    sudo pip install coveralls

before_script:
  - "echo 'starting'"
  - "echo $PYTHONPATH"

script:
    sudo coverage run --include="mdv/markdownviewer.py"  setup.py test
    # those paths seem to be needed if you run tests directly, otherwise libs
    # are not found. strange:
    #echo $PYTHONPATH && export PYTHONPATH="`pwd`:$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages" && python -c "import docopt, markdown, pygments, yaml" && python mdv/tests/test_files.py

    #- "ls -la /home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages"
    #- "ls -la /usr/lib/python2.7/dist-packages"
    #- "ls -la /usr/local/lib/python2.7/dist-packages"
    
after_success:
    coveralls

