.travis.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. language: python
  2. python:
  3. ## Test against all supported python releases
  4. - "2.7"
  5. - "3.4"
  6. - "3.5"
  7. - "3.6"
  8. ## Travis Trusty doesn't support these versions
  9. #- "3.7"
  10. #- "3.8-dev"
  11. - "nightly"
  12. # PyPy versions
  13. ## Travis Trusty doesn't support these versions
  14. #- "pypy2.7"
  15. - "pypy3.5"
  16. os:
  17. - linux
  18. ## Python versions aren't availabe on macOS Travis
  19. #- osx
  20. ## The build matrix in the following stanza expands into builds for each
  21. ## OS and python version.
  22. ## Placeholder
  23. #env:
  24. # global:
  25. # -
  26. # matrix:
  27. # -
  28. ## Add extra builds
  29. ## Placeholder
  30. #matrix:
  31. # include:
  32. # - env:
  33. ## Uncomment to allow the build to report success (with non-required
  34. ## sub-builds continuing to run) if all required sub-builds have
  35. ## succeeded. This is somewhat buggy currently: it can cause
  36. ## duplicate notifications and prematurely report success if a
  37. ## single sub-build has succeeded. See
  38. ## https://github.com/travis-ci/travis-ci/issues/1696
  39. #fast_finish: true
  40. ## Careful! We use global envs, which makes it hard to exclude or
  41. ## allow failures by env:
  42. ## https://docs.travis-ci.com/user/customizing-the-build#matching-jobs-with-allow_failures
  43. #exclude:
  44. ## Placeholder
  45. #- python: "3.6"
  46. # os: linux
  47. ## We don't need sudo. (The "apt:" stanza after this allows us to not need
  48. ## sudo; otherwise, we would need it for getting dependencies.)
  49. sudo: false
  50. ## (Linux only) Use the latest Linux image (Ubuntu Trusty)
  51. dist: trusty
  52. ## (Linux only) Download our dependencies
  53. addons:
  54. apt:
  55. sources:
  56. ## Trusty has Tor 0.2.4, so we need a newer version of Tor from the
  57. ## torproject repositories, and the torproject key from the keyservers
  58. - sourceline: 'deb https://deb.torproject.org/torproject.org trusty main'
  59. key_url: 'http://ha.pool.sks-keyservers.net/pks/lookup?search=0xA3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89&options=mr&op=get'
  60. packages:
  61. ## Required dependencies
  62. - tor
  63. ## Is this necessary for a once-off build?
  64. #- deb.torproject.org-keyring
  65. ## (OSX only) Use the default OSX image
  66. ## See https://docs.travis-ci.com/user/reference/osx#os-x-version
  67. ## Default is Xcode 9.4 on macOS 10.13 as of August 2018
  68. #osx_image: xcode9.4
  69. before_install:
  70. ## Placeholder
  71. -
  72. install:
  73. ## Placeholder
  74. -
  75. ##
  76. ## Finally, list installed package versions
  77. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then dpkg-query --show; fi
  78. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list --versions; fi
  79. - python --version
  80. - tor --version
  81. script:
  82. - tools/test-network.sh
  83. after_failure:
  84. ## Re-run chutney in debug mode
  85. ## TODO: improve debug mode
  86. - tools/test-network.sh --debug
  87. after_success:
  88. ## Placeholder
  89. -
  90. notifications:
  91. irc:
  92. channels:
  93. - "irc.oftc.net#tor-ci"
  94. template:
  95. - "%{repository} %{branch} %{commit} - %{author}: %{commit_subject}"
  96. - "Build #%{build_number} %{result}. Details: %{build_url}"
  97. on_success: change
  98. on_failure: change
  99. email:
  100. on_success: never
  101. on_failure: change