.travis.yml 1.4KB

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