.travis.yml 3.4 KB

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