.travis.yml 840B

12345678910111213141516171819202122232425262728293031323334353637
  1. sudo: false
  2. cache:
  3. - pip
  4. - npm
  5. - directories:
  6. - $HOME/.cache/pip
  7. addons:
  8. firefox: "latest"
  9. language: python
  10. python:
  11. - "2.7"
  12. - "3.6"
  13. before_install:
  14. - "export DISPLAY=:99.0"
  15. - "sh -e /etc/init.d/xvfb start"
  16. - npm install less less-plugin-clean-css grunt-cli
  17. - export PATH=`pwd`/node_modules/.bin:$PATH
  18. - ./manage.sh install_geckodriver ~/drivers
  19. - export PATH=~/drivers:$PATH
  20. install:
  21. - ./manage.sh npm_packages
  22. - ./manage.sh update_dev_packages
  23. - pip install coveralls
  24. script:
  25. - ./manage.sh styles
  26. - ./manage.sh grunt_build
  27. - ./manage.sh tests
  28. after_success:
  29. - ./manage.sh py_test_coverage
  30. - coveralls
  31. notifications:
  32. irc:
  33. channels:
  34. - "irc.freenode.org#searx"
  35. template:
  36. - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
  37. on_success: change