.travis.yml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. - ( cd searx/static/themes/oscar;npm install; cd - )
  18. - ( cd searx/static/themes/simple;npm install; cd - )
  19. - mkdir -p ~/drivers; export PATH=~/drivers:$PATH;
  20. - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz";
  21. - FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver;
  22. install:
  23. - ./manage.sh update_dev_packages
  24. - pip install coveralls
  25. script:
  26. - ./manage.sh styles
  27. - ./manage.sh grunt_build
  28. - ./manage.sh tests
  29. after_success:
  30. - ./manage.sh py_test_coverage
  31. - coveralls
  32. notifications:
  33. irc:
  34. channels:
  35. - "irc.freenode.org#searx"
  36. template:
  37. - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
  38. on_success: change