.travis.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334
  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. - "pip install coveralls"
  19. before_script:
  20. - "psql -c 'create database tracim_test;' -U postgres"
  21. - "cp ${TRAVIS_BUILD_DIR}/tracim/development.ini.base ${TRAVIS_BUILD_DIR}/tracim/development.ini"
  22. # - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox setup-app -c ${TRAVIS_BUILD_DIR}/tracim/test.ini"
  23. - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox setup-app"
  24. # - "cd ${TRAVIS_BUILD_DIR}/tracim && gearbox migrate -c ${TRAVIS_BUILD_DIR}/tracim/test.ini upgrade"
  25. # command to run tests
  26. script: "cd ${TRAVIS_BUILD_DIR}/tracim && nosetests -c ${TRAVIS_BUILD_DIR}/tracim/test.ini -v --with-coverage --cover-package=tracim --cover-erase"
  27. after_success:
  28. - coveralls