.travis.yml 1.0KB

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 grunt-cli
  17. - ( cd searx/static/themes/oscar;npm install; cd - )
  18. - mkdir -p ~/drivers; export PATH=~/drivers:$PATH;
  19. - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz";
  20. - FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver;
  21. install:
  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