.travis.yml 1.0KB

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