.travis.yml 1.2 KB

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