.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: "2.7"
  31. - python: "3.5"
  32. - python: "3.6"
  33. - stage: docker
  34. python: "3.6"
  35. git:
  36. depth: false
  37. services:
  38. - docker
  39. addons: []
  40. before_install: true
  41. install: true
  42. script:
  43. - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  44. - make -e GIT_URL=$(git remote get-url origin) docker.push
  45. after_success: true
  46. notifications:
  47. irc:
  48. channels:
  49. - "irc.freenode.org#searx"
  50. template:
  51. - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
  52. on_success: change