.travis.yml 1.2 KB

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