.travis.yml 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. language: python
  2. python:
  3. - "3.2"
  4. # - "3.3"
  5. # - "3.4"
  6. addons:
  7. postgresql: "9.3"
  8. # command to install dependencies
  9. # Note: there's an echo at the end of pip install. It allows to override the default return code which is not 0
  10. # because some packages need to be ugraded to python3 (invalid python syntax because of python2 source code)
  11. #
  12. # pip install -r is run 2 times in order to really install tgapp-resetpassword (to investigate)
  13. #
  14. install:
  15. - "cd tracim && python setup.py develop; cd -"
  16. - "pip install -r install/requirements.txt; echo"
  17. - "./bin/tg2env-patch 1 /home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages"
  18. - "pip install -r install/requirements.txt; echo"
  19. - "./bin/tg2env-patch 2 /home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages"
  20. - "pip install coveralls"
  21. before_script:
  22. - "psql -c 'create database tracim_test;' -U postgres"
  23. - "cp tracim/development.ini.base tracim/development.ini"
  24. # command to run tests
  25. script: "cd tracim && nosetests -v --with-coverage --cover-package=tracim --cover-erase"
  26. after_success:
  27. - coveralls