.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. language: python
  2. sudo: false
  3. cache:
  4. - directories:
  5. - $HOME/.cache/pip
  6. addons:
  7. firefox: "latest"
  8. install:
  9. - make install
  10. - make gecko.driver
  11. - make node.env
  12. - local/py3/bin/pip install codecov
  13. script:
  14. - make styles
  15. - make themes
  16. - make test
  17. after_success:
  18. - make test.coverage
  19. - codecov
  20. stages:
  21. - test
  22. - name: docker
  23. if: branch = master AND type != pull_request AND env(DOCKER_USERNAME) IS present
  24. jobs:
  25. include:
  26. - python: "2.7"
  27. - python: "3.5"
  28. - python: "3.6"
  29. - stage: docker
  30. python: "3.6"
  31. git:
  32. depth: false
  33. services:
  34. - docker
  35. addons: []
  36. before_install: true
  37. install: true
  38. script:
  39. - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  40. - local/py3/bin/activate; ./manage.sh docker_build push
  41. after_success: true
  42. notifications:
  43. irc:
  44. channels:
  45. - "irc.freenode.org#searx"
  46. template:
  47. - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
  48. on_success: change