.travis.yml 1.1 KB

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