.travis.yml 1.1 KB

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