.travis.yml 1.1 KB

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